summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authorsvncommit <devs@roundcube.net>2006-06-30 22:02:28 +0000
committersvncommit <devs@roundcube.net>2006-06-30 22:02:28 +0000
commit25d8ba63b3c4831050e5d190cd42cf2b0b0f3a30 (patch)
tree34e871f1a9c9ec7f4e9f17f018c66b7379fb68b5 /program/include
parenta894ba5029a09fb9d0453b5cf9c944ce313f8a48 (diff)
Misc bug and compatibility fixes
Diffstat (limited to 'program/include')
-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 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