Fix variable scope.
authorMichael M Slusarz <slusarz@curecanti.org>
Sun, 4 Jan 2009 07:42:32 +0000 (00:42 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Sun, 4 Jan 2009 07:42:52 +0000 (00:42 -0700)
imp/lib/base.php

index e058888..6343175 100644 (file)
@@ -161,7 +161,7 @@ if ($authentication !== 'none') {
     }
 
     // Set default message character set, if necessary
-    if ($def_charset = $prefs->getValue('default_msg_charset')) {
+    if ($def_charset = $GLOBALS['prefs']->getValue('default_msg_charset')) {
         Horde_Mime_Part::$defaultCharset = $def_charset;
         Horde_Mime_Headers::$defaultCharset = $def_charset;
     }