1
0
Fork 0

Changed parameter order for "getbyURLForUser"

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

View file

@ -238,7 +238,7 @@ class Contact
* @param boolean $update true = always update, false = never update, null = update when not found or outdated
* @return array contact array
*/
public static function getByURLForUser(string $url, int $uid = 0, array $fields = [], $update = null)
public static function getByURLForUser(string $url, int $uid = 0, $update = null, array $fields = [])
{
if ($uid != 0) {
$contact = self::getByURL($url, $update, $fields, $uid);

View file

@ -111,7 +111,7 @@ class GContact
continue;
}
$gcontacts[] = Contact::getByURLForUser($result['nurl'], local_user(), [], false);
$gcontacts[] = Contact::getByURLForUser($result['nurl'], local_user(), false);
}
DBA::close($results);
return $gcontacts;