diff --git a/module/common/model.php b/module/common/model.php index 5d19b4a161..f55ef01dc9 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -686,9 +686,10 @@ class commonModel extends model echo ''; return; } - foreach($position as $key => $link) + + if(is_array($position)) { - echo "
  • " . $link . '
  • '; + foreach($position as $key => $link) echo "
  • " . $link . '
  • '; } echo ''; } diff --git a/module/common/view/header.html.php b/module/common/view/header.html.php index 9c21185fd8..6f490a4a87 100755 --- a/module/common/view/header.html.php +++ b/module/common/view/header.html.php @@ -4,13 +4,6 @@ include 'header.lite.html.php'; include 'chosen.html.php'; //include 'validation.html.php'; ?> -app->getModuleRoot() . '/common/ext/view/'; -$extHookRule = $extPath . 'header.*.hook.php'; -$extHookFiles = glob($extHookRule); -if($extHookFiles) foreach($extHookFiles as $extHookFile) include $extHookFile; -?> app->loadConfig('sso');?> sso->redirect)) js::set('ssoRedirect', $config->sso->redirect);?> diff --git a/module/common/view/header.lite.html.php b/module/common/view/header.lite.html.php index 54dbcfd32c..5bde20d219 100755 --- a/module/common/view/header.lite.html.php +++ b/module/common/view/header.lite.html.php @@ -62,5 +62,12 @@ $onlybody = zget($_GET, 'onlybody', 'no'); +app->getModuleRoot() . '/common/ext/view/'; +$extHookRule = $extPath . 'header.*.hook.php'; +$extHookFiles = glob($extHookRule); +if($extHookFiles) foreach($extHookFiles as $extHookFile) include $extHookFile; +?>