summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-06-22 21:54:18 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-06-22 21:54:18 +0000
commitef98159d624beb6550708d940ae8b3faa857fc0b (patch)
treeb448023d01178ea9df578f847a588964e72c05cf
parentfb01631b13d669993e34ed3a48c0f3f4c88111a1 (diff)
Fix check in pagenav
git-svn-id: https://svn.roundcube.net/trunk@4873 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/program/steps/mail/pagenav.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/steps/mail/pagenav.inc b/roundcubemail/program/steps/mail/pagenav.inc
index a3d3d00a3..974b3b46f 100644
--- a/roundcubemail/program/steps/mail/pagenav.inc
+++ b/roundcubemail/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