1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-20 13:21:54 +02:00

PHP 7.3 Notice/Warning Fixes.

This commit is contained in:
Cameron
2019-05-27 10:45:35 -07:00
parent eb6401385e
commit 783be29953
10 changed files with 42 additions and 26 deletions

View File

@@ -577,7 +577,7 @@ class e_menuManager {
$menu_perm['mainadmin'] = e_UC_MAINADMIN;
$menu_perm['admin'] = e_UC_ADMIN;
$menu_perm['nobody'] = e_UC_NOBODY;
$link_class = ($menu_perm[$link_class]) ? $menu_perm[$link_class] : e_UC_PUBLIC;
$link_class = isset($menu_perm[$link_class]) ? $menu_perm[$link_class] : e_UC_PUBLIC;
return $link_class;
}
@@ -926,11 +926,13 @@ class e_menuManager {
$areaID = $menus['@attributes']['id'];
foreach($menus['menu'] as $k=>$v)
{
$perm = isset($v['@attributes']['perm']) ? $v['@attributes']['perm'] : null;
$menuArea[] = array(
'menu_location' => $areaID,
'menu_order' => $k,
'menu_name' => $v['@attributes']['name']."_menu",
'menu_class' => $this->menuPresetPerms($v['@attributes']['perm'])
'menu_class' => $this->menuPresetPerms($perm)
);
}
}