From aa2e9274225f9daa230afeba831c27acc3851419 Mon Sep 17 00:00:00 2001 From: kink Date: Tue, 19 Apr 2005 19:23:35 +0000 Subject: [PATCH] Fix a small bug when displaying less messages than the page max. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9361 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mailbox_display.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index adf6b5ef..4a58d6da 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -899,6 +899,7 @@ function showMessagesForMailbox($imapConnection, &$aMailbox,$aProps, &$iError) { $aMailbox['PAGEOFFSET'] + $iLimit - 1 : $aMailbox['EXISTS']; $iNumberOfMessages = $aMailbox['TOTAL'][$iSetIndx]; + $iEnd = min ( $iEnd, $iNumberOfMessages ); $php_self = $PHP_SELF; @@ -1377,4 +1378,4 @@ function attachSelectedMessages($imapConnection,$aMsgHeaders) { return $composesession; } -?> \ No newline at end of file +?> -- 2.25.1