summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-01-31 19:41:42 +0000
committeralecpl <alec@alec.pl>2011-01-31 19:41:42 +0000
commit2c052c19b155c355e4eebd894e2816bfaf79bf5d (patch)
tree0ca9f8d70f0c6f86156f379c2c4b429cda00dd52 /program/steps
parentae3d6065d823d784f11515fcb47a7a981634821b (diff)
- Prevent from messages_sort_col == null
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/mail/func.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index 72283d02d..9abfef761 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -56,7 +56,7 @@ if (!empty($_GET['_page']))
// set default sort col/order to session
if (!isset($_SESSION['sort_col']))
- $_SESSION['sort_col'] = $CONFIG['message_sort_col'];
+ $_SESSION['sort_col'] = !empty($CONFIG['message_sort_col']) ? $CONFIG['message_sort_col'] : '';
if (!isset($_SESSION['sort_order']))
$_SESSION['sort_order'] = strtoupper($CONFIG['message_sort_order']) == 'ASC' ? 'ASC' : 'DESC';