From: Michael Date: Mon, 30 Apr 2018 16:45:00 +0000 (+0000) Subject: Bugfix: Contact wasn't added on probing X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1a8d0a573e1fd94026236c8a9f2651d42a358adb;p=friendica.git Bugfix: Contact wasn't added on probing --- diff --git a/src/Network/Probe.php b/src/Network/Probe.php index d14c623e86..6e7e21d1e9 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); } }