Fix fatal error when a session has timed out
authorChuck Hagenbuch <chuck@horde.org>
Fri, 24 Dec 2010 21:43:09 +0000 (16:43 -0500)
committerChuck Hagenbuch <chuck@horde.org>
Fri, 24 Dec 2010 21:43:09 +0000 (16:43 -0500)
framework/Core/lib/Horde/Registry.php

index 3c641e7..5b34556 100644 (file)
@@ -2142,7 +2142,7 @@ class Horde_Registry
      */
     public function getEmailCharset()
     {
-        if ($charset = $GLOBALS['prefs']->getValue('sending_charset')) {
+        if (isset($GLOBALS['prefs']) && ($charset = $GLOBALS['prefs']->getValue('sending_charset'))) {
             return $charset;
         }