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:
nate 2006-12-15 16:10:57 +00:00
parent c25bcd26ab
commit deea24b153

View file

@ -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;
} }
/** /**