From ae3d6065d823d784f11515fcb47a7a981634821b Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Mon, 31 Jan 2011 14:34:47 -0500
Subject: [PATCH] - Fix add/remove columns in message list when message_sort_order isn't set (#1487751)

---
 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 131a5aa..72283d0 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -58,7 +58,7 @@
 if (!isset($_SESSION['sort_col']))
   $_SESSION['sort_col'] = $CONFIG['message_sort_col'];
 if (!isset($_SESSION['sort_order']))
-  $_SESSION['sort_order'] = $CONFIG['message_sort_order'];
+  $_SESSION['sort_order'] = strtoupper($CONFIG['message_sort_order']) == 'ASC' ? 'ASC' : 'DESC';
 
 // set threads mode
 $a_threading = $RCMAIL->config->get('message_threading', array());

--
Gitblit v1.9.1