diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index 966603298..6ec4b1537 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -276,10 +276,12 @@ $(document).ready(function () { $menuitems = $hookObj->userMenuItems($this, $menuitems); } } - foreach($menuitems as $menuitem) { - echo "
  • ".getMLText($menuitem['label'])."
  • "; + if($menuitems) { + foreach($menuitems as $menuitem) { + echo "
  • ".getMLText($menuitem['label'])."
  • "; + } + echo "
  • \n"; } - echo "
  • \n"; } $showdivider = false; if($this->params['enablelanguageselector']) {