Prechádzať zdrojové kódy

Temporary Workaround for 4.1 problem

philippe_mingo 23 rokov pred
rodič
commit
e0e83dc6a6
1 zmenil súbory, kde vykonal 5 pridanie a 0 odobranie
  1. 5 0
      src/right_main.php

+ 5 - 0
src/right_main.php

@@ -103,6 +103,11 @@ if (! isset($use_mailbox_cache)) {
     $use_mailbox_cache = 0;
     $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')) {
 if ($use_mailbox_cache && session_is_registered('msgs')) {
     showMessagesForMailbox($imapConnection, $mailbox, $numMessages, $startMessage, $sort, $color, $show_num, $use_mailbox_cache);
     showMessagesForMailbox($imapConnection, $mailbox, $numMessages, $startMessage, $sort, $color, $show_num, $use_mailbox_cache);
 } else {
 } else {