From d46fbcf87c702f667a0a23832affb66de26092d7 Mon Sep 17 00:00:00 2001 From: philippe_mingo Date: Wed, 9 Jan 2002 09:45:30 +0000 Subject: [PATCH] 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 --- src/right_main.php | 5 +++++ 1 file changed, 5 insertions(+) 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 { -- 2.25.1