From d251beb7c32127a91ed129592b2fcdf84541d004 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 28 Sep 2016 14:59:39 +0200 Subject: [PATCH] show divider only if menuitems and admin menu exists --- views/bootstrap/class.Bootstrap.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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']) {