Bläddra i källkod

ZF-7658: addconfig problem with new default route
ZF-7118: Wrong assemble of Zend_Controller_Roter_Route_Regex
ZF-5967: Regex route does not assemble url when urlOptions is using associative arrays
ZF-5558: CLONE -Zend_Controller_Router_Route_Regex won't assemble when used with xml config

(corrected if-clause to really work with routes configured in xml)

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@18297 44c647ce-9c0f-0410-b52a-842ac1e357ba

jan 16 år sedan
förälder
incheckning
e07360cfca
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      library/Zend/Controller/Router/Route/Regex.php

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

@@ -139,7 +139,7 @@ class Zend_Controller_Router_Route_Regex extends Zend_Controller_Router_Route_Ab
             } elseif ($reversed) {
                 $index = $key;
                 if (!is_int($key)) {
-                    if (isset($this->_map[$key]) && is_int($this->_map[$key])) {
+                    if (array_key_exists($key, $this->_map)) {
                         $index = $this->_map[$key];
                     } else {
                         $index = array_search($key, $this->_map, true);