Преглед изворни кода

Temporary Workaround for 4.1 problem

philippe_mingo пре 23 година
родитељ
комит
e0e83dc6a6
1 измењених фајлова са 5 додато и 0 уклоњено
  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;
 }
 
+/* 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 {