diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-08-26 19:22:53 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-08-26 19:25:08 +0200 |
commit | 4922ebda5c08c5da31fd33682b8cc569b8293e62 (patch) | |
tree | bb267886f3f5eb183a82aaa6f9890dc794770151 | |
parent | 847f5b9a77e075eea82b5248c06181a5de0e9dde (diff) |
Fix PERMANENTFLAGS checking in modFlag()
-rw-r--r-- | program/lib/Roundcube/rcube_imap_generic.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/lib/Roundcube/rcube_imap_generic.php b/program/lib/Roundcube/rcube_imap_generic.php index f465ac13d..08d220bcd 100644 --- a/program/lib/Roundcube/rcube_imap_generic.php +++ b/program/lib/Roundcube/rcube_imap_generic.php @@ -1977,8 +1977,8 @@ class rcube_imap_generic $flag = $this->flags[strtoupper($flag)]; } - if (!$flag || !in_array($flag, (array) $this->data['PERMANENTFLAGS']) - || !in_array('\\*', (array) $this->data['PERMANENTFLAGS']) + if (!$flag || (!in_array($flag, (array) $this->data['PERMANENTFLAGS']) + && !in_array('\\*', (array) $this->data['PERMANENTFLAGS'])) ) { return false; } |