$value) { /* * Check the property for any modifications. */ if ($vm_info[$property] != $db_info[$property]) { ## FIXME - this should loop building a query and then run the query after the loop (bad geert!) dbUpdate(array($property => $vm_info[$property]), 'vminfo', '`id` = ?', array($db_info["id"])); log_event($db_info["vmwVmDisplayName"] . " (" . preg_replace("/^vmwVm/", "", $property) . ") -> " . $vm_info[$property], $device); } } } /* * Finished discovering VMware information. */ echo("\n"); ?>