Changed default value

This commit is contained in:
Michael 2020-07-15 17:29:52 +00:00
parent e374aecc46
commit 6d3949d54a
10 changed files with 12 additions and 12 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());
$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());
$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());
if ($contact["name"] == "") {
$contact["name"] = end(explode("/", $urlParts["path"]));