From 4ee9200db085e6754589dc3fe3b4a36fa75b1fde Mon Sep 17 00:00:00 2001 From: Alan Gregory Date: Fri, 2 Oct 2015 17:05:36 -0300 Subject: [PATCH 1/4] 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 220112c51e..179049cc17 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(' From 4f6fa8a947f9af68301addd947a952eb5f385714 Mon Sep 17 00:00:00 2001 From: Alan Gregory Date: Fri, 2 Oct 2015 17:18:34 -0300 Subject: [PATCH 2/4] Fix double query --- html/includes/print-menubar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/includes/print-menubar.php b/html/includes/print-menubar.php index 179049cc17..ac40706d66 100644 --- a/html/includes/print-menubar.php +++ b/html/includes/print-menubar.php @@ -135,7 +135,7 @@ foreach (dbFetchRows($sql,$param) as $devtype) { $devices_groups = GetDeviceGroups(); if (count($devices_groups) > 0 ){ echo '