| 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: |
// 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