$profile = $msearch->results[$i];
// Already known contact
- if (!$profile || Contact::getIdForURL($profile->url, local_user(), false)) {
+ if (!$profile || Contact::getIdForURL($profile->url, local_user())) {
continue;
}
$contact = Contact::getByURLForUser($profile->url, local_user());
if (!empty($contact)) {
- $entries[] = ModuleContact::getContactTemplateVars($contact, $i);
+ $entries[] = ModuleContact::getContactTemplateVars($contact);
}
}