From: Michael <heluecht@pirati.ca> Date: Thu, 10 May 2018 20:14:51 +0000 (+0000) Subject: Fix SQL error X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3d2bc7700e145c837b7b7078b86530b43a4a93d9;p=friendica.git Fix SQL error --- diff --git a/src/Model/GContact.php b/src/Model/GContact.php index 7a12f1a697..c413bef4fa 100644 --- a/src/Model/GContact.php +++ b/src/Model/GContact.php @@ -239,7 +239,7 @@ class GContact if ($alternate && ($gcontact['network'] == NETWORK_OSTATUS)) { // 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)]); } }