From e4fc562f4ea64f188f59f30c0c26489b175e693d Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Thu, 23 Jul 2009 12:08:58 -0600 Subject: [PATCH] Some things that should always be initialized --- imp/lib/base.php | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) 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(); -- 2.11.0