From 3d2bc7700e145c837b7b7078b86530b43a4a93d9 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 10 May 2018 20:14:51 +0000 Subject: [PATCH] Fix SQL error --- src/Model/GContact.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)]); } }