diff --git a/cake/libs/router.php b/cake/libs/router.php index febdb2b1f..3398a6520 100644 --- a/cake/libs/router.php +++ b/cake/libs/router.php @@ -733,7 +733,7 @@ class Router extends Object { array_unshift($urlOut, $url['plugin']); } - if($admin && isset($url['admin'])) { + if($admin && isset($url[$admin])) { array_unshift($urlOut, $admin); } $output = join('/', $urlOut) . '/';