From 86a025f5042d22e624767e142bfb9e2152fdb41e Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Wed, 22 Jun 2011 17:54:18 -0400
Subject: [PATCH] Fix check in pagenav

---
 program/steps/mail/pagenav.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/program/steps/mail/pagenav.inc b/program/steps/mail/pagenav.inc
index a3d3d00..974b3b4 100644
--- a/program/steps/mail/pagenav.inc
+++ b/program/steps/mail/pagenav.inc
@@ -28,7 +28,7 @@
 // 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

--
Gitblit v1.9.1