summaryrefslogtreecommitdiff
path: root/program/steps/mail/pagenav.inc
diff options
context:
space:
mode:
Diffstat (limited to 'program/steps/mail/pagenav.inc')
-rw-r--r--program/steps/mail/pagenav.inc2
1 files changed, 1 insertions, 1 deletions
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