diff options
author | alecpl <alec@alec.pl> | 2011-01-31 19:41:42 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-01-31 19:41:42 +0000 |
commit | 2c052c19b155c355e4eebd894e2816bfaf79bf5d (patch) | |
tree | 0ca9f8d70f0c6f86156f379c2c4b429cda00dd52 /program/steps | |
parent | ae3d6065d823d784f11515fcb47a7a981634821b (diff) |
- Prevent from messages_sort_col == null
Diffstat (limited to 'program/steps')
-rw-r--r-- | program/steps/mail/func.inc | 2 |
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'; |