From: Michael M Slusarz Date: Thu, 12 Mar 2009 18:48:57 +0000 (-0600) Subject: Bug #8066: Fix empty trash when in trash mailbox X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=dba20c0b7a13887a4f1d8198c610e97ca5668ca9;p=horde.git Bug #8066: Fix empty trash when in trash mailbox --- diff --git a/imp/lib/Message.php b/imp/lib/Message.php index 08769a37f..723587baf 100644 --- a/imp/lib/Message.php +++ b/imp/lib/Message.php @@ -648,7 +648,9 @@ class IMP_Message { global $imp_search, $notification, $prefs; - $trash_folder = ($prefs->getValue('use_trash')) ? IMP::folderPref($prefs->getValue('trash_folder'), true) : null; + $trash_folder = ($prefs->getValue('use_trash')) + ? IMP::folderPref($prefs->getValue('trash_folder'), true) + : null; foreach ($mbox_list as $mbox) { $display_mbox = IMP::displayFolder($mbox); @@ -674,7 +676,7 @@ class IMP_Message } if (empty($trash_folder) || ($trash_folder == $mbox)) { - $this->flagAllInMailbox(array('\\deleted'), $mbox, true); + $this->flagAllInMailbox(array('\\deleted'), array($mbox), true); $this->expungeMailbox(array($mbox => 1)); } else { $ret = $GLOBALS['imp_imap']->ob->search($mbox);