/**
* search.php
*
- * Copyright (c) 1999-2004 The SquirrelMail Project Team
+ * Copyright (c) 1999-2005 The SquirrelMail Project Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* IMAP search page
$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]);
mail_message_listing_end($cnt, '', $msg_cnt_str);
echo '</td></tr>';
- echo '</table>';
+ echo '</table></form>';
}
/**