From: philippe_mingo Date: Wed, 9 Jan 2002 09:45:30 +0000 (+0000) Subject: Temporary Workaround for 4.1 problem X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=d46fbcf87c702f667a0a23832affb66de26092d7 Temporary Workaround for 4.1 problem git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2107 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/right_main.php b/src/right_main.php index 6e4dbd92..fd500049 100644 --- a/src/right_main.php +++ b/src/right_main.php @@ -103,6 +103,11 @@ if (! isset($use_mailbox_cache)) { $use_mailbox_cache = 0; } +/* There is a problem with registered vars in 4.1 */ +if( substr( phpversion(), 0, 3 ) == '4.1' ) ) { + $use_mailbox_cache = FALSE; +} + if ($use_mailbox_cache && session_is_registered('msgs')) { showMessagesForMailbox($imapConnection, $mailbox, $numMessages, $startMessage, $sort, $color, $show_num, $use_mailbox_cache); } else {