From e7e91ea095cff832455ee1b9ac82297818b5711c Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Thu, 10 Mar 2016 10:47:02 +0100 Subject: [PATCH] Fixed error in php with acl enterprise. Tiquet: #3457 (cherry picked from commit 2502c26077ec1d7985a766739b236e5ffc0c48bc) --- pandora_console/include/functions_menu.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/functions_menu.php b/pandora_console/include/functions_menu.php index d3a4aee622..cd0f9d6643 100644 --- a/pandora_console/include/functions_menu.php +++ b/pandora_console/include/functions_menu.php @@ -309,7 +309,7 @@ function menu_print_menu (&$menu) { $count_sub2 = 0; foreach ($sub['sub2'] as $key => $sub2) { - if (enterprise_hook ('enterprise_acl', array ($config['id_user'], $mainsec, $subsec2, false,$key)) == false) { + if (enterprise_hook ('enterprise_acl', array ($config['id_user'], $mainsec, $subsec2, false, $key)) == false) { continue; } @@ -640,7 +640,7 @@ function menu_get_sec2_pages($sec, $sec2, $menu_hash = false) { $sec3_array = array(); - if (isset($sec2)) { + if (isset($menu[$sec]['sub']) AND isset($menu[$sec]['sub'][$sec2]['sub2'])) { // Get the sec2 of the subsections foreach ($menu[$sec]['sub'][$sec2]['sub2'] as $k => $v) { $sec3_array[$k] = $v['text'];