1
1
Fork 0

Fix "Suggest a friend" text

This commit is contained in:
Philipp Holzer 2021-10-22 19:10:55 +02:00 committed by Hypolite Petovan
parent 4a386b2f36
commit 61839d503a

View file

@ -93,7 +93,7 @@ class FriendSuggest extends BaseModule
DI::baseUrl()->redirect(); DI::baseUrl()->redirect();
} }
$contacts = ContactModel::selectToArray(['id', 'name'], [ $suggestableContacts = ContactModel::selectToArray(['id', 'name'], [
'`uid` = ? '`uid` = ?
AND `id` != ? AND `id` != ?
AND `network` = ? AND `network` = ?
@ -110,8 +110,8 @@ class FriendSuggest extends BaseModule
$formattedContacts = []; $formattedContacts = [];
foreach ($contacts as $contact) { foreach ($suggestableContacts as $suggestableContact) {
$formattedContacts[$contact['id']] = $contact['name']; $formattedContacts[$suggestableContact['id']] = $suggestableContact['name'];
} }
$tpl = Renderer::getMarkupTemplate('fsuggest.tpl'); $tpl = Renderer::getMarkupTemplate('fsuggest.tpl');