diff --git a/src/Network/Probe.php b/src/Network/Probe.php index d14c623e8..6e7e21d1e 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -444,6 +444,11 @@ class Probe $old_fields = dba::selectFirst('contact', $fieldnames, $condition); + // When the contact doesn't exist, the value "true" will trigger an insert + if (!$old_fields) { + $old_fields = true; + } + dba::update('contact', $fields, $condition, $old_fields); } }