From b01af72c62c4a063c236d70a68870d0a9f8ac951 Mon Sep 17 00:00:00 2001 From: indiri69 Date: Fri, 3 Dec 2004 18:22:57 +0000 Subject: [PATCH] Use the count of what we found, not what is in the actual mailbox git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@8407 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/search.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/search.php b/src/search.php index e37c467b..7d276868 100644 --- a/src/search.php +++ b/src/search.php @@ -878,8 +878,8 @@ function asearch_print_mailbox_msgs($imapConnection, &$aMailbox, $color) { $cnt = count($aMailbox['UIDSET'][$iSetIndx]); $iLimit = ($aMailbox['SHOWALL'][$iSetIndx]) ? $cnt : $aMailbox['LIMIT']; - $iEnd = ($aMailbox['PAGEOFFSET'] + ($iLimit - 1) < $aMailbox['EXISTS']) ? - $aMailbox['PAGEOFFSET'] + $iLimit - 1 : $cnt; + $iEnd = ($aMailbox['PAGEOFFSET'] + ($iLimit - 1) < $cnt) ? + $aMailbox['PAGEOFFSET'] + ($iLimit - 1) : $cnt; $paginator_str = get_paginator_str($aMailbox['NAME'], $aMailbox['PAGEOFFSET'], $cnt, $aMailbox['LIMIT'], $aMailbox['SHOWALL'][$iSetIndx]); @@ -1493,4 +1493,4 @@ do_hook('search_bottom'); sqimap_logout($imapConnection); echo ''; sqsession_register($mailbox_cache,'mailbox_cache'); -?> \ No newline at end of file +?> -- 2.25.1