1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-18 04:12:00 +02:00

Fix for missing buttons in Admin Panel.

This commit is contained in:
Cameron
2019-01-14 17:40:12 -08:00
parent 4becf60d28
commit f727660ed9
2 changed files with 7 additions and 26 deletions

View File

@@ -198,12 +198,13 @@ class adminstyle_flexpanel extends adminstyle_infopanel
$mainPanel .= "<div class='left'>";
foreach($this->iconlist as $key => $val)
{
if(!vartrue($user_pref['core-infopanel-mye107']) || in_array($key, $user_pref['core-infopanel-mye107']))
if(empty($myE107) || in_array($key, $user_pref['core-infopanel-mye107']))
{
$mainPanel .= e107::getNav()->renderAdminButton($val['link'], $val['title'], $val['caption'], $val['perms'], $val['icon_32'], "div");
}
}
$mainPanel .= "</div></div>";
// Rendering the saved configuration.
$ns->setStyle('flexpanel');
$caption = $tp->lanVars(LAN_CONTROL_PANEL, ucwords(USERNAME));