diff --git a/inc/mail_functions.inc.php b/inc/mail_functions.inc.php index c492fd8c..d63d49ec 100644 --- a/inc/mail_functions.inc.php +++ b/inc/mail_functions.inc.php @@ -8,7 +8,8 @@ function mfh_get_mail_headers_for_dropdown($user_id, $hesk_settings, $hesklang) LEFT JOIN `" . hesk_dbEscape($hesk_settings['db_pfix']) . "users` AS `users` ON `mail`.`from` = `users`.`id` WHERE `to` = " . hesk_dbEscape($user_id) . " - AND `read` = '0'"; + AND `read` = '0' + ORDER BY `mail`.`dt` DESC"; $rs = hesk_dbQuery($sql); diff --git a/inc/new_admin_header_and_sidebar.inc.php b/inc/new_admin_header_and_sidebar.inc.php index 37ff7561..360a6d1f 100644 --- a/inc/new_admin_header_and_sidebar.inc.php +++ b/inc/new_admin_header_and_sidebar.inc.php @@ -34,20 +34,6 @@ if (!defined('IN_SCRIPT')) { } $mails = mfh_get_mail_headers_for_dropdown($_SESSION['id'], $hesk_settings, $hesklang); - -// Show a notice if we are in maintenance mode -/*if (hesk_check_maintenance(false)) { - echo '
'; - hesk_show_notice($hesklang['mma2'], $hesklang['mma1'], false); - echo '
'; -} - -// Show a notice if we are in "Knowledgebase only" mode -if (hesk_check_kb_only(false)) { - echo '
'; - hesk_show_notice($hesklang['kbo2'], $hesklang['kbo1'], false); - echo '
'; -}*/ ?>
@@ -119,21 +105,6 @@ if (hesk_check_kb_only(false)) { - - '; - hesk_show_notice($hesklang['mma2'], $hesklang['mma1'], false); - echo '
'; - } - - // Show a notice if we are in "Knowledgebase only" mode - if (hesk_check_kb_only(false)) { - echo '
'; - hesk_show_notice($hesklang['kbo2'], $hesklang['kbo1'], false); - echo '
'; - }*/ - ?>