Fix charset caching.
authorJan Schneider <jan@horde.org>
Sun, 23 Aug 2009 13:35:32 +0000 (15:35 +0200)
committerJan Schneider <jan@horde.org>
Sun, 23 Aug 2009 13:35:32 +0000 (15:35 +0200)
framework/Nls/lib/Horde/Nls.php

index 6a0c17c..6287f10 100644 (file)
@@ -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;
         }
     }