From: Michael M Slusarz Date: Thu, 23 Jul 2009 18:08:58 +0000 (-0600) Subject: Some things that should always be initialized X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=e4fc562f4ea64f188f59f30c0c26489b175e693d;p=horde.git Some things that should always be initialized --- diff --git a/imp/lib/base.php b/imp/lib/base.php index 0fa599591..8c17c6e33 100644 --- a/imp/lib/base.php +++ b/imp/lib/base.php @@ -130,15 +130,13 @@ if (!isset($GLOBALS['imp_imap'])) { $GLOBALS['imp_imap'] = new IMP_Imap(); } -if ($authentication !== 'none') { - // Initialize some message parsing variables. - Horde_Mime::$brokenRFC2231 = !empty($GLOBALS['conf']['mailformat']['brokenrfc2231']); - - // Set default message character set, if necessary - if ($def_charset = $GLOBALS['prefs']->getValue('default_msg_charset')) { - Horde_Mime_Part::$defaultCharset = $def_charset; - Horde_Mime_Headers::$defaultCharset = $def_charset; - } +// Initialize some message parsing variables. +Horde_Mime::$brokenRFC2231 = !empty($GLOBALS['conf']['mailformat']['brokenrfc2231']); + +// Set default message character set, if necessary +if ($def_charset = $GLOBALS['prefs']->getValue('default_msg_charset')) { + Horde_Mime_Part::$defaultCharset = $def_charset; + Horde_Mime_Headers::$defaultCharset = $def_charset; } $notification = Horde_Notification::singleton();