Fix wrong variable name

This commit is contained in:
Michael 2020-03-12 18:58:48 +00:00
parent e1786b6747
commit 505cca942b

View file

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