alecpl
2011-01-31 2c052c19b155c355e4eebd894e2816bfaf79bf5d
- Prevent from messages_sort_col == null


1 files modified
2 ■■■ changed files
program/steps/mail/func.inc 2 ●●● patch | view | raw | blame | history
program/steps/mail/func.inc
@@ -56,7 +56,7 @@
// 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';