diff --git a/html/includes/print-menubar.php b/html/includes/print-menubar.php
index 50902dc050..8117e4fbbb 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('
@@ -529,7 +531,7 @@ if ($_SESSION['userlevel'] >= '10') {
');
-}
+}
if ($_SESSION['authenticated']) {
echo('