mirror of
https://github.com/friendica/friendica
synced 2024-12-22 23:20:16 +00:00
Merge branch 'direct-dfrn' of github.com:annando/friendica into direct-dfrn
This commit is contained in:
commit
b72bc0735f
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue