summaryrefslogtreecommitdiff
path: root/program/include/rcube_imap.inc
diff options
context:
space:
mode:
authorsvncommit <devs@roundcube.net>2007-03-12 09:26:03 +0000
committersvncommit <devs@roundcube.net>2007-03-12 09:26:03 +0000
commit6ce04b1f7f15e8f8e79641787650a354f99b28de (patch)
tree2e60b321ed015814f54adf6cf87455469c78af7a /program/include/rcube_imap.inc
parent024797706f972e849c7a480c99e5a1d9e673c380 (diff)
Fix DB error when deleting message from cache (closes #1483835).
Diffstat (limited to 'program/include/rcube_imap.inc')
-rw-r--r--program/include/rcube_imap.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/include/rcube_imap.inc b/program/include/rcube_imap.inc
index 544552696..9e1fc8cab 100644
--- a/program/include/rcube_imap.inc
+++ b/program/include/rcube_imap.inc
@@ -1434,8 +1434,8 @@ class rcube_imap
$start_index = 100000;
foreach ($a_uids as $uid)
{
- $index = array_search($uid, $a_cache_index);
- $start_index = min($index, $start_index);
+ if (($index = array_search($uid, $a_cache_index)) !== FALSE)
+ $start_index = min($index, $start_index);
}
// clear cache from the lowest index on