"id" is not needed as a parameter
This commit is contained in:
parent
a4b5536d17
commit
ce7f192f35
6 changed files with 6 additions and 14 deletions
|
@ -72,13 +72,11 @@ class AllFriends extends BaseModule
|
|||
return DI::l10n()->t('No friends to display.');
|
||||
}
|
||||
|
||||
$id = 0;
|
||||
|
||||
$entries = [];
|
||||
foreach ($friends as $friend) {
|
||||
$contact = Model\Contact::getByURLForUser($friend['url'], local_user());
|
||||
if (!empty($contact)) {
|
||||
$entries[] = Contact::getContactTemplateVars($contact, ++$id);
|
||||
$entries[] = Contact::getContactTemplateVars($contact);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue