From: Jan Schneider Date: Sun, 23 Aug 2009 13:35:32 +0000 (+0200) Subject: Fix charset caching. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=1886d211a3ea5f7ba7b5885652688af097acffc5;p=horde.git Fix charset caching. --- 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; } }