Keep sorts of persistent search mailboxes
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 6 Oct 2010 18:12:34 +0000 (12:12 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 7 Oct 2010 06:45:40 +0000 (00:45 -0600)
imp/lib/LoginTasks/SystemTask/GarbageCollection.php

index 73fa76d..89d40f7 100644 (file)
@@ -46,7 +46,7 @@ class IMP_LoginTasks_SystemTask_GarbageCollection extends Horde_LoginTasks_Syste
         $sortpref = @unserialize($GLOBALS['prefs']->getValue('sortpref'));
 
         foreach (array_keys($sortpref) as $key) {
-            if ($imp_search[$key]) {
+            if ($imp_search->isSearchMbox($key) && !$imp_search[$key]) {
                 unset($sortpref[$key]);
                 $update = true;
             }