From 86a025f5042d22e624767e142bfb9e2152fdb41e Mon Sep 17 00:00:00 2001 From: thomascube Date: Wed, 22 Jun 2011 21:54:18 +0000 Subject: Fix check in pagenav --- program/steps/mail/pagenav.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program') diff --git a/program/steps/mail/pagenav.inc b/program/steps/mail/pagenav.inc index a3d3d00a3..974b3b46f 100644 --- a/program/steps/mail/pagenav.inc +++ b/program/steps/mail/pagenav.inc @@ -28,7 +28,7 @@ $IMAP->select_mailbox($mbox_name); // Get messages count (only messages, no threads here) $cnt = $IMAP->messagecount(NULL, 'ALL'); -if ($_SESSION['sort_col'] == 'date' && $_SESSION['sort_order'] != 'DESC' +if ($_SESSION['sort_col'] == 'date' && $_SESSION['sort_order'] == 'DESC' && empty($_REQUEST['_search']) && !$CONFIG['skip_deleted'] && !$IMAP->threading ) { // this assumes that we are sorted by date_DESC -- cgit v1.2.3