mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Fixing undefined index error in Router
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4104 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
c25bcd26ab
commit
deea24b153
1 changed files with 3 additions and 5 deletions
|
@ -300,12 +300,10 @@ class Router extends Overloadable {
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
function setParams($params) {
|
function setParams($params) {
|
||||||
|
|
||||||
$_this =& Router::getInstance();
|
$_this =& Router::getInstance();
|
||||||
$params[1] = am(
|
$defaults = array('plugin' => null, 'controller' => null, 'action' => null);
|
||||||
array('plugin' => null, 'controller' => null, 'action' => null),
|
$params[0] = am($defaults, $params[0]);
|
||||||
$params[1]
|
$params[1] = am($defaults, $params[1]);
|
||||||
);
|
|
||||||
list($_this->__params[], $_this->__paths[]) = $params;
|
list($_this->__params[], $_this->__paths[]) = $params;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue