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

@ -79,7 +79,7 @@ class AllFriends extends BaseModule
$entries = [];
foreach ($friends as $friend) {
//get further details of the contact
$contactDetails = array_merge($friend, Model\Contact::getByURLForUser($friend['url'], $uid, false));
$contactDetails = array_merge($friend, Model\Contact::getByURLForUser($friend['url'], $uid));
$connlnk = '';
// $friend[cid] is only available for common contacts. So if the contact is a common one, use contact_photo_menu to generate the photoMenu

View file

@ -65,7 +65,7 @@ class Hovercard extends BaseModule
// Search for contact data
// Look if the local user has got the contact
if (Session::isAuthenticated()) {
$contact = Contact::getByURLForUser($contact_url, local_user(), false);
$contact = Contact::getByURLForUser($contact_url, local_user());
} else {
$contact = Contact::getByURL($contact_url, false);
}

View file

@ -103,7 +103,7 @@ class Contacts extends BaseProfile
continue;
}
$contact_details = array_merge($contact, Contact::getByURLForUser($contact['url'], $a->profile['uid'], false));
$contact_details = array_merge($contact, Contact::getByURLForUser($contact['url'], $a->profile['uid']));
$contacts[] = [
'id' => $contact['id'],