]> git.donarmstrong.com Git - roundcube.git/blobdiff - program/steps/mail/pagenav.inc
Imported Upstream version 0.6+dfsg
[roundcube.git] / program / steps / mail / pagenav.inc
index e295114e1614d8957df9f57006a1af6a79459a62..974b3b46f3908357a96f16cae3f46ec9fb99c886 100644 (file)
@@ -5,7 +5,7 @@
  | program/steps/mail/pagenav.inc                                        |
  |                                                                       |
  | This file is part of the Roundcube Webmail client                     |
- | Copyright (C) 2005-2009, Roundcube Dev. - Switzerland                 |
+ | Copyright (C) 2005-2009, The Roundcube Dev Team                       |
  | Licensed under the GNU GPL                                            |
  |                                                                       |
  | PURPOSE:                                                              |
@@ -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