Fix wrong variable name
authorMichael <heluecht@pirati.ca>
Thu, 12 Mar 2020 18:58:48 +0000 (18:58 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 12 Mar 2020 18:58:48 +0000 (18:58 +0000)
src/Model/GContact.php

index 5bcac5a..2606edb 100644 (file)
@@ -1343,7 +1343,7 @@ class GContact
                        foreach ($contacts as $contact) {
                                $gcontact = DBA::selectFirst('gcontact', ['id'], ['nurl' => Strings::normaliseLink(($contact))]);
                                if (DBA::isResult($gcontact)) {
-                                       $field = [];
+                                       $fields = [];
                                        if (in_array($contact, $followers)) {
                                                $fields = ['gcid' => $gcid, 'follower-gcid' => $gcontact['id']];
                                        } elseif (in_array($contact, $followings)) {