summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-03-11 10:26:58 +0100
committerAleksander Machniak <alec@alec.pl>2013-03-11 10:26:58 +0100
commit336d2000f8b3edd788bbdd49c4c5bc11c895a94d (patch)
treeab36818ed5c5062ca44727a132bba9a664fc876e
parentec6a77bab27984ce05b003af07ac9f42ca410d94 (diff)
Fix handling of empty $uids argument in change_flag()
-rw-r--r--program/lib/Roundcube/rcube_imap_cache.php2
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);
}