Update libvirt-vminfo.inc.php

This commit is contained in:
Jurrian van Iersel
2016-01-17 15:42:31 +01:00
parent d0f0e055fb
commit a1c5a9dbeb
+1 -1
View File
@@ -10,7 +10,7 @@ if ($config['enable_libvirt'] == '1' && $device['os'] == 'linux') {
$ssh_ok = 0;
$userHostname = $device['hostname'];
if (!is_null($config['libvirt_username'])) {
if (isset($config['libvirt_username'])) {
$userHostname = $config['libvirt_username'].'@'.$userHostname;
}