Bugfix: Contact wasn't added on probing
This commit is contained in:
parent
4909075321
commit
1a8d0a573e
|
@ -444,6 +444,11 @@ class Probe
|
||||||
|
|
||||||
$old_fields = dba::selectFirst('contact', $fieldnames, $condition);
|
$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);
|
dba::update('contact', $fields, $condition, $old_fields);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue