From 9e4918979a47cc3d3b7aa2149829f6916498f229 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 10 Mar 2009 12:36:51 -0600 Subject: [PATCH] Bug #8050: Fix folder list generation. --- imp/lib/IMP.php | 2 +- imp/templates/prefs/draftsselect.inc | 2 +- imp/templates/prefs/spamselect.inc | 2 +- imp/templates/prefs/trashselect.inc | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/imp/lib/IMP.php b/imp/lib/IMP.php index 0ebbc764e..143189c9e 100644 --- a/imp/lib/IMP.php +++ b/imp/lib/IMP.php @@ -250,7 +250,7 @@ class IMP } /* Add the list of mailboxes to the lists. */ - $filter = empty($options['filter']) ? array() : array_flip($filter); + $filter = empty($options['filter']) ? array() : array_flip($options['filter']); foreach ($mailboxes as $mbox) { if (isset($filter[$mbox['val']])) { continue; diff --git a/imp/templates/prefs/draftsselect.inc b/imp/templates/prefs/draftsselect.inc index df405df6b..c13f8a397 100644 --- a/imp/templates/prefs/draftsselect.inc +++ b/imp/templates/prefs/draftsselect.inc @@ -21,7 +21,7 @@ function newDraftsFolderName()
diff --git a/imp/templates/prefs/spamselect.inc b/imp/templates/prefs/spamselect.inc index 38c1bb0d9..a8e46e10f 100644 --- a/imp/templates/prefs/spamselect.inc +++ b/imp/templates/prefs/spamselect.inc @@ -18,6 +18,6 @@ function newSpamFolderName()
- + diff --git a/imp/templates/prefs/trashselect.inc b/imp/templates/prefs/trashselect.inc index e0c11c827..5b9beed73 100644 --- a/imp/templates/prefs/trashselect.inc +++ b/imp/templates/prefs/trashselect.inc @@ -22,7 +22,7 @@ function newTrashFolderName() $use_vtrash = $prefs->getValue('use_vtrash'); echo '' . '' . - IMP::flistSelect(array('heading' => _("Create a new trash folder"), 'filter' => array('INBOX'), 'selected' => ($use_vtrash ? null : IMP::folderPref($prefs->getValue('trash_folder'))), 'new_folder' => true)); + IMP::flistSelect(array('heading' => _("Create a new trash folder"), 'filter' => array('INBOX'), 'selected' => ($use_vtrash ? null : IMP::folderPref($prefs->getValue('trash_folder'), true)), 'new_folder' => true)); ?>
-- 2.11.0