diff --git a/code_igniter/application/models/m_devices_components.php b/code_igniter/application/models/m_devices_components.php index 7df1f0005..3399d654c 100644 --- a/code_igniter/application/models/m_devices_components.php +++ b/code_igniter/application/models/m_devices_components.php @@ -466,7 +466,7 @@ public function process_component($table = '', $details, $input, $display = 'n', $this->m_networks->upsert($network); } } - if ($details->type == 'computer' and $details->os_group == 'VMware') { + if ($details->type == 'computer' and !empty($details->os_group) and $details->os_group == 'VMware') { # TODO - fix the below somewhow ?!?? # the issue is that ESXi provides different values for network cards from the command line and from SNMP $sql = "DELETE FROM `ip` WHERE `ip`.`system_id` = ?";