Changed parameter order for "getbyURLForUser"
This commit is contained in:
@@ -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, false));
|
||||
|
||||
$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
|
||||
|
||||
@@ -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(), false);
|
||||
} else {
|
||||
$contact = Contact::getByURL($contact_url, false);
|
||||
}
|
||||
|
||||
@@ -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'], false));
|
||||
|
||||
$contacts[] = [
|
||||
'id' => $contact['id'],
|
||||
|
||||
Reference in New Issue
Block a user