]> git.mxchange.org Git - friendica.git/commitdiff
Fix SQL error
authorMichael <heluecht@pirati.ca>
Thu, 10 May 2018 20:14:51 +0000 (20:14 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 10 May 2018 20:14:51 +0000 (20:14 +0000)
src/Model/GContact.php

index 7a12f1a697881dab86781c709191f92f3b8dd585..c413bef4fa9ebde5d1a5cf95aab08c663a6f1dd2 100644 (file)
@@ -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)]);
                                }
                        }