From 6161716afc8db231160c9b96d5894165eba31cc3 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 4 Aug 2009 00:55:47 -0600 Subject: [PATCH] Fix determination of settable IMAP flags --- imp/lib/Imap/Flags.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/imp/lib/Imap/Flags.php b/imp/lib/Imap/Flags.php index 68db76f33..700e2f7b0 100644 --- a/imp/lib/Imap/Flags.php +++ b/imp/lib/Imap/Flags.php @@ -83,10 +83,9 @@ class IMP_Imap_Flags $this->_loadList(); $def_color = $GLOBALS['prefs']->getValue('msgflags_color'); - $ret = $this->_flags; - $avail_flags = array_keys($ret); + $avail_flags = array_keys($this->_flags); - $types = array(); + $ret = $types = array(); if (!empty($options['imap'])) { $types = array('imapp', 'imapu'); } @@ -103,6 +102,7 @@ class IMP_Imap_Flags } foreach ($avail_flags as $key) { + $ret[$key] = $this->_flags[$key]; $ret[$key]['flag'] = $key; if (!empty($options['fgcolor'])) { -- 2.11.0