Fixing "undefined variable" error in dispatch

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4230 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
dho 2006-12-29 08:00:01 +00:00
parent b47906cdc1
commit b05215eb9a

View file

@ -215,6 +215,7 @@ class Dispatcher extends Object {
if (!empty($controller->params['pass'])) { if (!empty($controller->params['pass'])) {
$controller->passed_args =& $controller->params['pass']; $controller->passed_args =& $controller->params['pass'];
$controller->passedArgs =& $controller->params['pass']; $controller->passedArgs =& $controller->params['pass'];
$named = false;
if (is_array($controller->namedArgs) ) { if (is_array($controller->namedArgs) ) {
if(array_key_exists($params['action'], $controller->namedArgs)) { if(array_key_exists($params['action'], $controller->namedArgs)) {