Changed parameter order for "getbyURLForUser"

This commit is contained in:
Michael 2020-07-15 17:22:12 +00:00
parent fc0312451d
commit e374aecc46
11 changed files with 14 additions and 14 deletions

View file

@ -77,7 +77,7 @@ class Search
// Ensure that we do have a contact entry
Contact::getIdForURL($user_data['url'] ?? '');
$contactDetails = Contact::getByURLForUser($user_data['url'] ?? '', local_user(), [], false);
$contactDetails = Contact::getByURLForUser($user_data['url'] ?? '', local_user(), false);
$result = new ContactResult(
$user_data['name'] ?? '',
@ -143,7 +143,7 @@ class Search
foreach ($profiles as $profile) {
$profile_url = $profile['url'] ?? '';
$contactDetails = Contact::getByURLForUser($profile_url, local_user(), [], false);
$contactDetails = Contact::getByURLForUser($profile_url, local_user(), false);
$result = new ContactResult(
$profile['name'] ?? '',
@ -232,7 +232,7 @@ class Search
continue;
}
$contact = Contact::getByURLForUser($row["nurl"], local_user(), [], false);
$contact = Contact::getByURLForUser($row["nurl"], local_user(), false);
if ($contact["name"] == "") {
$contact["name"] = end(explode("/", $urlParts["path"]));