summaryrefslogtreecommitdiff
path: root/program/steps/mail
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-06-22 21:54:18 +0000
committerthomascube <thomas@roundcube.net>2011-06-22 21:54:18 +0000
commit86a025f5042d22e624767e142bfb9e2152fdb41e (patch)
tree81efbeba974ef7dee9a0a6935c370159af8b57b5 /program/steps/mail
parent06c01d172009eebe253c59673d25bc6f3595b15a (diff)
Fix check in pagenav
Diffstat (limited to 'program/steps/mail')
-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