From 7f2e73ecc7602ff88f809c6077d287e3c99db28c Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Fri, 7 Jan 2011 11:46:34 -0700 Subject: [PATCH] Fix typo preventing vtrash from being disabled --- imp/lib/Search.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imp/lib/Search.php b/imp/lib/Search.php index 720628695..70fcc1bcf 100644 --- a/imp/lib/Search.php +++ b/imp/lib/Search.php @@ -372,7 +372,7 @@ class IMP_Search implements ArrayAccess, Iterator, Serializable /* Build list of default virtual folders. */ $di = new DirectoryIterator(IMP_BASE . '/lib/Search/Vfolder'); - $disabled = array('IMP_Search_Vfolder_Vtrash'); + $disable = array('IMP_Search_Vfolder_Vtrash'); foreach ($di as $val) { if ($val->isFile()) { @@ -380,7 +380,7 @@ class IMP_Search implements ArrayAccess, Iterator, Serializable if (($cname != 'IMP_Search_Vfolder_Builtin') && class_exists($cname)) { $vfolder = new $cname(array( - 'disabled' => in_array($cname, $disabled) + 'disable' => in_array($cname, $disable) )); $vf[$vfolder->id] = $vfolder; } -- 2.11.0