From 5c771cb25e62494cba263097175d9b718acb8aba Mon Sep 17 00:00:00 2001 From: alecpl Date: Wed, 28 Jan 2009 10:52:02 +0000 Subject: - Fix MDNSent flag checking, use arbitrary keywords (asterisk) flag (#1485706) --- program/include/rcube_imap.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'program/include/rcube_imap.php') 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)); } -- cgit v1.2.3