mirror of
https://github.com/friendica/friendica
synced 2025-04-20 13:50:16 +00:00
"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
|
@ -118,7 +118,6 @@ class BaseSearch extends BaseModule
|
|||
return '';
|
||||
}
|
||||
|
||||
$id = 0;
|
||||
$entries = [];
|
||||
foreach ($results->getResults() as $result) {
|
||||
|
||||
|
@ -126,7 +125,7 @@ class BaseSearch extends BaseModule
|
|||
if ($result instanceof ContactResult) {
|
||||
$contact = Model\Contact::getByURLForUser($result->getUrl(), 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