From 1886d211a3ea5f7ba7b5885652688af097acffc5 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Sun, 23 Aug 2009 15:35:32 +0200 Subject: [PATCH] Fix charset caching. --- framework/Nls/lib/Horde/Nls.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/Nls/lib/Horde/Nls.php b/framework/Nls/lib/Horde/Nls.php index 6a0c17c29..6287f1069 100644 --- a/framework/Nls/lib/Horde/Nls.php +++ b/framework/Nls/lib/Horde/Nls.php @@ -314,12 +314,12 @@ class Horde_Nls */ static public function _cachedCharset($index, $charset = null) { - if ($charset == null) { + if (is_null($charset)) { return isset(self::$_cache['charset'][$index]) ? self::$_cache['charset'][$index] : null; } else { - $cache[$index] = $charset; + self::$_cache['charset'][$index] = $charset; } } -- 2.11.0