Browse Source

Fixed issue with Router not accepting default URL arguments to be null, false or a blank string.

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@24170 44c647ce-9c0f-0410-b52a-842ac1e357ba
guilhermeblanco 14 years ago
parent
commit
12cbc1d50c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      library/Zend/Controller/Router/Route.php

+ 1 - 1
library/Zend/Controller/Router/Route.php

@@ -347,7 +347,7 @@ class Zend_Controller_Router_Route extends Zend_Controller_Router_Route_Abstract
                     $value = $this->_values[$name];
                 } elseif (!$reset && !$useDefault && isset($this->_wildcardData[$name])) {
                     $value = $this->_wildcardData[$name];
-                } elseif (isset($this->_defaults[$name])) {
+                } elseif (array_key_exists($name, $this->_defaults)) {
                     $value = $this->_defaults[$name];
                 } else {
                     require_once 'Zend/Controller/Router/Exception.php';