Aleksander Machniak
2013-10-17 037af6890fe6fdb84a08d3c86083e847c90ec0ad
program/steps/mail/pagenav.inc
@@ -20,7 +20,7 @@
*/
$uid   = get_input_value('_uid', RCUBE_INPUT_GET);
$index = $RCMAIL->storage->index(null, $_SESSION['sort_col'], $_SESSION['sort_order']);
$index = $RCMAIL->storage->index(null, rcmail_sort_column(), rcmail_sort_order());
$cnt   = $index->count_messages();
if ($cnt && ($pos = $index->exists($uid, true)) !== false) {