diff options
| author | robin <robin@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2007-03-12 09:26:03 +0000 |
|---|---|---|
| committer | robin <robin@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2007-03-12 09:26:03 +0000 |
| commit | ce6713014beec6fb2645ad3d05add7a496b1bbae (patch) | |
| tree | 75c505cbf2572924657d5b3ec2685df0d25a6d4b /roundcubemail/program | |
| parent | ee73a5da28a3a33f0e83e6192b531eeb0efe6b2b (diff) | |
Fix DB error when deleting message from cache (closes #1483835).
git-svn-id: https://svn.roundcube.net/trunk@503 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/include/rcube_imap.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/program/include/rcube_imap.inc b/roundcubemail/program/include/rcube_imap.inc index 544552696..9e1fc8cab 100644 --- a/roundcubemail/program/include/rcube_imap.inc +++ b/roundcubemail/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 |
