From ac0770651d6879c93d321bd083fe0f11de79940e Mon Sep 17 00:00:00 2001 From: knut <> Date: Wed, 22 Feb 2006 21:49:37 +0000 Subject: Recovered optimization "fix" that wasn't really a fix :) --- framework/I18N/core/CultureInfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/I18N') diff --git a/framework/I18N/core/CultureInfo.php b/framework/I18N/core/CultureInfo.php index 39b8495a..fe2c45e6 100644 --- a/framework/I18N/core/CultureInfo.php +++ b/framework/I18N/core/CultureInfo.php @@ -254,7 +254,7 @@ class CultureInfo if(is_file($filename) == false) throw new Exception('Data file for "'.$file.'" was not found.'); - if(!isset($this->dataFiles[$filename])) + if(in_array($filename, $this->dataFiles) === false) { array_unshift($this->dataFiles, $file); -- cgit v1.2.3