From 4ee9200db085e6754589dc3fe3b4a36fa75b1fde Mon Sep 17 00:00:00 2001 From: Alan Gregory Date: Fri, 2 Oct 2015 17:05:36 -0300 Subject: [PATCH] Moved Device Groups SubMenu Space fix --- html/includes/print-menubar.php | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/html/includes/print-menubar.php b/html/includes/print-menubar.php index 220112c51..179049cc1 100644 --- a/html/includes/print-menubar.php +++ b/html/includes/print-menubar.php @@ -129,16 +129,18 @@ foreach (dbFetchRows($sql,$param) as $devtype) { echo('
  • ' . ucfirst($devtype['type']) . '
  • '); } -require_once '../includes/device-groups.inc.php'; - -foreach( GetDeviceGroups() as $group ) { - echo '
  • '.ucfirst($group['name']).'
  • '; -} -unset($group); - echo (' '); - + require_once '../includes/device-groups.inc.php'; + $devices_groups = GetDeviceGroups(); + if (count($devices_groups) > 0 ){ + echo ''; + } if ($_SESSION['userlevel'] >= '10') { if ($config['show_locations']) { echo('