mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-18 10:35:27 +00:00
(legacy) fix uninitialized menu_messages
This commit is contained in:
parent
5f651fb65c
commit
1455f7bbf3
@ -68,6 +68,7 @@ function get_menu_messages()
|
||||
{
|
||||
global $config;
|
||||
|
||||
$menu_messages = '';
|
||||
if (are_notices_pending()) {
|
||||
$notices = get_notices();
|
||||
$requests = array();
|
||||
@ -103,7 +104,6 @@ function get_menu_messages()
|
||||
}
|
||||
|
||||
$notice_msgs .="</ul>";
|
||||
$menu_messages = '';
|
||||
|
||||
if (count($notices) == 1) {
|
||||
$msg= sprintf("%1$02d",count($notices))." ".gettext("unread notice");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user