From 61839d503a8f0f26e6f0b6860c0f35ee90ac4d54 Mon Sep 17 00:00:00 2001 From: Philipp Date: Fri, 22 Oct 2021 19:10:55 +0200 Subject: [PATCH] Fix "Suggest a friend" text --- src/Module/FriendSuggest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Module/FriendSuggest.php b/src/Module/FriendSuggest.php index e8e0fc2f0..78e75bc31 100644 --- a/src/Module/FriendSuggest.php +++ b/src/Module/FriendSuggest.php @@ -93,7 +93,7 @@ class FriendSuggest extends BaseModule DI::baseUrl()->redirect(); } - $contacts = ContactModel::selectToArray(['id', 'name'], [ + $suggestableContacts = ContactModel::selectToArray(['id', 'name'], [ '`uid` = ? AND `id` != ? AND `network` = ? @@ -110,8 +110,8 @@ class FriendSuggest extends BaseModule $formattedContacts = []; - foreach ($contacts as $contact) { - $formattedContacts[$contact['id']] = $contact['name']; + foreach ($suggestableContacts as $suggestableContact) { + $formattedContacts[$suggestableContact['id']] = $suggestableContact['name']; } $tpl = Renderer::getMarkupTemplate('fsuggest.tpl');