From 25d8ba63b3c4831050e5d190cd42cf2b0b0f3a30 Mon Sep 17 00:00:00 2001 From: svncommit Date: Fri, 30 Jun 2006 22:02:28 +0000 Subject: Misc bug and compatibility fixes --- program/include/rcube_imap.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'program/include') diff --git a/program/include/rcube_imap.inc b/program/include/rcube_imap.inc index d825a35b0..bb3146466 100644 --- a/program/include/rcube_imap.inc +++ b/program/include/rcube_imap.inc @@ -1060,8 +1060,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 -- cgit v1.2.3