Fix "Suggest a friend" text
This commit is contained in:
parent
4a386b2f36
commit
61839d503a
|
@ -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');
|
||||||
|
|
Loading…
Reference in a new issue