Temporary Workaround for 4.1 problem
authorphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 9 Jan 2002 09:45:30 +0000 (09:45 +0000)
committerphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 9 Jan 2002 09:45:30 +0000 (09:45 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2107 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/right_main.php

index 6e4dbd9..fd50004 100644 (file)
@@ -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 {