From ae3d6065d823d784f11515fcb47a7a981634821b Mon Sep 17 00:00:00 2001 From: alecpl Date: Mon, 31 Jan 2011 19:34:47 +0000 Subject: - Fix add/remove columns in message list when message_sort_order isn't set (#1487751) --- CHANGELOG | 1 + program/steps/mail/func.inc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index cfd6fd540..28d361a1f 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,7 @@ CHANGELOG Roundcube Webmail =========================== +- Fix add/remove columns in message list when message_sort_order isn't set (#1487751) - Check mime headers before attempt to parse them (#1487745) - Quote header values in show_additional_headers plugin (#1487744) - Fix settings UI on IE 6 (#1487724) diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index 131a5aa87..72283d02d 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -58,7 +58,7 @@ if (!empty($_GET['_page'])) 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()); -- cgit v1.2.3