From 6ab20f61072b628bcad085244158aaa7ca3265ec Mon Sep 17 00:00:00 2001 From: jangliss Date: Wed, 6 Jul 2005 18:17:47 +0000 Subject: [PATCH] Fix for folder cache if the cache was somehow broken. Reproduced bad cache 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 | 1 + functions/mailbox_display.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d23ffa8c..35bce94d 100644 --- 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 ------------------------------- diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index 9834405f..26290e68 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -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(); -- 2.25.1