Enabling empty array URLs in Router::url()

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6727 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2008-04-26 14:41:42 +00:00
parent b0568e7ace
commit 9bad5824cb

View file

@ -705,7 +705,7 @@ class Router extends Object {
$base = $path['base'];
$extension = $output = $mapped = $q = $frag = null;
if (is_array($url) && !empty($url)) {
if (is_array($url)) {
if (array_key_exists('base', $url) && $url['base'] === false) {
$base = null;
unset($url['base']);