Commit 1455f7bb authored by Ad Schellevis's avatar Ad Schellevis

(legacy) fix uninitialized menu_messages

parent 5f651fb6
...@@ -68,6 +68,7 @@ function get_menu_messages() ...@@ -68,6 +68,7 @@ function get_menu_messages()
{ {
global $config; global $config;
$menu_messages = '';
if (are_notices_pending()) { if (are_notices_pending()) {
$notices = get_notices(); $notices = get_notices();
$requests = array(); $requests = array();
...@@ -103,7 +104,6 @@ function get_menu_messages() ...@@ -103,7 +104,6 @@ function get_menu_messages()
} }
$notice_msgs .="</ul>"; $notice_msgs .="</ul>";
$menu_messages = '';
if (count($notices) == 1) { if (count($notices) == 1) {
$msg= sprintf("%1$02d",count($notices))." ".gettext("unread notice"); $msg= sprintf("%1$02d",count($notices))." ".gettext("unread notice");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment