From: Michael M Slusarz Date: Tue, 9 Dec 2008 07:18:37 +0000 (-0700) Subject: Fix default messages on a page. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=21d9eefff4fd186725657868378ceb827c607e74;p=horde.git Fix default messages on a page. --- diff --git a/imp/lib/Mailbox.php b/imp/lib/Mailbox.php index a758aa3c3..656d21c98 100644 --- a/imp/lib/Mailbox.php +++ b/imp/lib/Mailbox.php @@ -440,9 +440,8 @@ class IMP_Mailbox $ret = array('msgcount' => count($this->_sorted)); - if (is_null($page_size) && - ($page_size != $GLOBALS['prefs']->getValue('max_msgs'))) { - $page_size = 20; + if (is_null($page_size)) { + $page_size = $GLOBALS['prefs']->getValue('max_msgs'); } if ($ret['msgcount'] > $page_size) {