Explorar o código

[GENERIC] Zend_Locale:

- fixed locale caching

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@22313 44c647ce-9c0f-0410-b52a-842ac1e357ba
thomas %!s(int64=16) %!d(string=hai) anos
pai
achega
ebd6a4ebda
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      library/Zend/Locale.php

+ 2 - 2
library/Zend/Locale.php

@@ -807,8 +807,8 @@ class Zend_Locale
      */
     public static function isLocale($locale, $strict = false, $compatible = true)
     {
-        if (($locale instanceof Zend_Locale) 
-            || (is_array($locale) && array_key_exists($locale, self::$_localeData))
+        if (($locale instanceof Zend_Locale)
+            || (is_string($locale) && array_key_exists($locale, self::$_localeData))
         ) {
             return true;
         }