From 0fa87032d6a6d43b5e7bb4a0ee544cb834a4ee7f Mon Sep 17 00:00:00 2001 From: thomas Date: Sat, 15 May 2010 10:15:45 +0000 Subject: [PATCH] [ZF-9795] Zend_Locale: - performance improvement on isLocale() git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@22176 44c647ce-9c0f-0410-b52a-842ac1e357ba --- library/Zend/Locale.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Zend/Locale.php b/library/Zend/Locale.php index c02e5506b..703db25f5 100644 --- a/library/Zend/Locale.php +++ b/library/Zend/Locale.php @@ -807,7 +807,7 @@ class Zend_Locale */ public static function isLocale($locale, $strict = false, $compatible = true) { - if ($locale instanceof Zend_Locale) { + if (($locale instanceof Zend_Locale) || (array_key_exists($locale, self::$_localeData))) { return true; } -- 2.11.4.GIT