Fix for folder cache if the cache was somehow broken. Reproduced bad cache
authorjangliss <jangliss@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 6 Jul 2005 18:17:47 +0000 (18:17 +0000)
committerjangliss <jangliss@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 6 Jul 2005 18:17:47 +0000 (18:17 +0000)
when managing large amounts of emails on multiple pages.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9727 7612ce4b-ef26-0410-bec9-ea0150e637f0

ChangeLog
functions/mailbox_display.php

index d23ffa8cfe5ffa17e2294683dd90141d12416153..35bce94d5e5b7a1230b8e7e79dfb9d268d6d5dbd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -392,6 +392,7 @@ Version 1.5.1 -- CVS
   - sqimap_messages_delete|copy|flag and sqimap_get_small_header()
     functions are removed from SquirrelMail IMAP API. Use sqimap_msgs_*
     and sqimap_get_small_header_list() functions instead.
+  - Fix for bad cache on massive expunge/delete/move operations.
 
 Version 1.5.0 - 2 February 2004
 -------------------------------
index 9834405f095aa9ff0a6199d2f6643f755d38839c..26290e6813d059359eefd48b301f9e703ee530fb 100644 (file)
@@ -342,7 +342,7 @@ function fetchMessageHeaders($imapConnection, &$aMailbox) {
 
         $id_slice = array_slice($aUid,$start_msg-1,$iLimit);
         /* do some funky cache checks */
-        if (isset($aMailbox['MSG_HEADERS'])) {
+        if (isset($aMailbox['MSG_HEADERS']) && is_array($aMailbox['MSG_HEADERS'])) {
             $aUidCached = array_keys($aMailbox['MSG_HEADERS']);
         } else {
             $aMailbox['MSG_HEADERS'] = array();