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

Admin -> Docs page cleanup. AdminUI: Fix for empty navigation box under some circumstances.

This commit is contained in:
Cameron
2015-09-06 11:00:07 -07:00
parent e4872386c0
commit 388024dc41
4 changed files with 186 additions and 18 deletions

View File

@@ -1479,7 +1479,7 @@ class e_admin_dispatcher
foreach($this->adminMenu as $key => $val)
{
if(!empty($val['perm']) && !getperms($val['perm']))
if(isset($val['perm']) && $val['perm']!=='' && !getperms($val['perm']))
{
continue;
}
@@ -1569,7 +1569,7 @@ class e_admin_dispatcher
if(empty($var)) return '';
$request = $this->getRequest();
if(!$selected) $selected = $request->getMode().'/'.$request->getAction();
$selected = vartrue($this->adminMenuAliases[$selected], $selected);