1
0
Fork 0

Merge pull request #4974 from annando/fix-blocked-contacts

Ugly bugfix: Public contacts had been blocked automatically when created
This commit is contained in:
Hypolite Petovan 2018-05-03 14:06:01 -04:00 committed by GitHub
commit 4158dcccaf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -447,6 +447,7 @@ class Probe
// When the contact doesn't exist, the value "true" will trigger an insert
if (!$old_fields) {
$old_fields = true;
$fields['blocked'] = false;
}
dba::update('contact', $fields, $condition, $old_fields);