Fix determination of starting message in search mailboxes
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 17 Sep 2009 21:12:21 +0000 (15:12 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 17 Sep 2009 21:15:11 +0000 (15:15 -0600)
imp/lib/Mailbox.php

index 0c5284e..2bbcdb6 100644 (file)
@@ -584,6 +584,10 @@ class IMP_Mailbox
      */
     public function mailboxStart($total)
     {
+        if ($this->_searchmbox) {
+            return 1;
+        }
+
         switch ($GLOBALS['prefs']->getValue('mailbox_start')) {
         case IMP::MAILBOX_START_FIRSTPAGE:
             return 1;