summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-01-28 10:52:02 +0000
committeralecpl <alec@alec.pl>2009-01-28 10:52:02 +0000
commit5c771cb25e62494cba263097175d9b718acb8aba (patch)
tree411f253b70d79f66511116a5edec77f7d0a8f16d /program/include
parent3866fd4681577010011494275580516f7b29f970 (diff)
- Fix MDNSent flag checking, use arbitrary keywords (asterisk) flag (#1485706)
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcube_imap.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php
index 5b3267bef..032489c50 100644
--- a/program/include/rcube_imap.php
+++ b/program/include/rcube_imap.php
@@ -354,8 +354,9 @@ class rcube_imap
*/
function check_permflag($flag)
{
- $flagsmap = $GLOBALS['IMAP_FLAGS'];
- return (($imap_flag = $flagsmap[strtoupper($flag)]) && in_array_nocase($imap_flag, $this->conn->permanentflags));
+ $flag = strtoupper($flag);
+ $imap_flag = $GLOBALS['IMAP_FLAGS'][$flag];
+ return (in_array_nocase($imap_flag, $this->conn->permanentflags));
}