From 2c052c19b155c355e4eebd894e2816bfaf79bf5d Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Mon, 31 Jan 2011 14:41:42 -0500
Subject: [PATCH] - Prevent from messages_sort_col == null

---
 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 72283d0..9abfef7 100644
--- a/program/steps/mail/func.inc
+++ b/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';
 

--
Gitblit v1.9.1