summaryrefslogtreecommitdiff
path: root/program/lib/Roundcube/rcube_imap_generic.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-08-26 19:22:53 +0200
committerAleksander Machniak <alec@alec.pl>2014-08-26 19:22:53 +0200
commit35b39c8d7d2a994e6aa0d8e700d2c912d3483a85 (patch)
tree2f4e50996dfddba20953b6af19b0ef3bf378f500 /program/lib/Roundcube/rcube_imap_generic.php
parent5f58127eae9ed8c54c190506e11af13e8ba57170 (diff)
Fix PERMANENTFLAGS checking in modFlag()
Diffstat (limited to 'program/lib/Roundcube/rcube_imap_generic.php')
-rw-r--r--program/lib/Roundcube/rcube_imap_generic.php4
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 a43dfeeed..68d9c6a2c 100644
--- a/program/lib/Roundcube/rcube_imap_generic.php
+++ b/program/lib/Roundcube/rcube_imap_generic.php
@@ -2041,8 +2041,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;
}