Merge pull request #5023 from annando/dba-error

Fix SQL error
This commit is contained in:
Hypolite Petovan 2018-05-10 16:27:31 -04:00 committed by GitHub
commit 0b4c831740
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -239,7 +239,7 @@ class GContact
if ($alternate && ($gcontact['network'] == NETWORK_OSTATUS)) { if ($alternate && ($gcontact['network'] == NETWORK_OSTATUS)) {
// Delete the old entry - if it exists // Delete the old entry - if it exists
if (dba::exists('item', ['nurl' => normalise_link($orig_profile)])) { if (dba::exists('gcontact', ['nurl' => normalise_link($orig_profile)])) {
dba::delete('gcontact', ['nurl' => normalise_link($orig_profile)]); dba::delete('gcontact', ['nurl' => normalise_link($orig_profile)]);
} }
} }