mirror of
https://github.com/roundcube/roundcubemail.git
synced 2026-03-04 15:24:02 +01:00
- Prevent from messages_sort_col == null
This commit is contained in:
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user