From 0e41c4c551c72f8abddbb9c0d3aa8b811f3ec113 Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Fri, 24 Dec 2010 16:43:09 -0500 Subject: [PATCH] Fix fatal error when a session has timed out --- framework/Core/lib/Horde/Registry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/Core/lib/Horde/Registry.php b/framework/Core/lib/Horde/Registry.php index 3c641e754..5b345560a 100644 --- a/framework/Core/lib/Horde/Registry.php +++ b/framework/Core/lib/Horde/Registry.php @@ -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; } -- 2.11.0