浏览代码

And again... another PHP 4.3 fix

jangliss 22 年之前
父节点
当前提交
c16e3d9c99
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      functions/mailbox_display.php

+ 4 - 0
functions/mailbox_display.php

@@ -362,6 +362,10 @@ function showMessagesForMailbox($imapConnection, $mailbox, $num_msgs,
         $msort = array();
     }
 
+    if (!isset($msgs)) {
+        $msgs = array();
+    }
+
     $start = microtime();
     /* If autoexpunge is turned on, then do it now. */
     $mbxresponse = sqimap_mailbox_select($imapConnection, $mailbox);