Fix page determination.
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 18 Dec 2008 18:29:30 +0000 (11:29 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 18 Dec 2008 18:29:30 +0000 (11:29 -0700)
imp/lib/Mailbox.php

index cd05e02..535431c 100644 (file)
@@ -513,7 +513,7 @@ class IMP_Mailbox
                 $ret['page'] = 1;
             }
 
-            $ret['begin'] = (($page - 1) * $page_size) + 1;
+            $ret['begin'] = (($ret['page'] - 1) * $page_size) + 1;
             $ret['end'] = $ret['begin'] + $page_size - 1;
             if ($ret['end'] > $ret['msgcount']) {
                 $ret['end'] = $ret['msgcount'];