diff --git a/html/includes/device-header.inc.php b/html/includes/device-header.inc.php index 456646f8d..a3a2f11c2 100644 --- a/html/includes/device-header.inc.php +++ b/html/includes/device-header.inc.php @@ -21,11 +21,20 @@ if ($device['disabled'] == '1') { $type = strtolower($device['os']); $image = getImage($device); +$host_id = dbFetchCell("SELECT `device_id` FROM `vminfo` WHERE `vmwVmDisplayName` = ? OR `vmwVmDisplayName` = ?", array($device['hostname'],$device['hostname'].'.'.$config['mydomain'])); echo ' - '.$image.' - '.generate_device_link($device).' + '.$image.' + '; +if ($host_id > 0) { + echo ' + + '; +} + +echo ' + '.generate_device_link($device).'
'.generate_link($device['location'], array('page' => 'devices', 'location' => $device['location'])).' ';