This may be called from the Registry ctor.
authorJan Schneider <jan@horde.org>
Wed, 18 Nov 2009 17:33:06 +0000 (18:33 +0100)
committerJan Schneider <jan@horde.org>
Wed, 18 Nov 2009 22:25:30 +0000 (23:25 +0100)
framework/Nls/lib/Horde/Nls.php

index dd1ba9f..65f7651 100644 (file)
@@ -115,7 +115,7 @@ class Horde_Nls
         if (isset($GLOBALS['language'])) {
             if ($GLOBALS['language'] == $lang) {
                 return;
-            } else {
+            } elseif (isset($GLOBALS['registry'])) {
                 $GLOBALS['registry']->clearCache();
             }
         }