diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-03-11 10:26:58 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-03-11 10:26:58 +0100 |
commit | 336d2000f8b3edd788bbdd49c4c5bc11c895a94d (patch) | |
tree | ab36818ed5c5062ca44727a132bba9a664fc876e /program/lib/Roundcube/rcube_imap_cache.php | |
parent | ec6a77bab27984ce05b003af07ac9f42ca410d94 (diff) |
Fix handling of empty $uids argument in change_flag()
Diffstat (limited to 'program/lib/Roundcube/rcube_imap_cache.php')
-rw-r--r-- | program/lib/Roundcube/rcube_imap_cache.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/lib/Roundcube/rcube_imap_cache.php b/program/lib/Roundcube/rcube_imap_cache.php index f33ac076c..748474af2 100644 --- a/program/lib/Roundcube/rcube_imap_cache.php +++ b/program/lib/Roundcube/rcube_imap_cache.php @@ -485,7 +485,7 @@ class rcube_imap_cache .", flags = flags ".($enabled ? "+ $idx" : "- $idx") ." WHERE user_id = ?" ." AND mailbox = ?" - .($uids !== null ? " AND uid IN (".$this->db->array2list($uids, 'integer').")" : "") + .(!empty($uids) ? " AND uid IN (".$this->db->array2list($uids, 'integer').")" : "") ." AND (flags & $idx) ".($enabled ? "= 0" : "= $idx"), $this->userid, $mailbox); } |