diff options
-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; } |