X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FContact.php;h=a6bb882e8652c8ea0496656ba39a310ba8cbe087;hb=073695b33c5f9c5d89d91958b09259c59e12dd98;hp=5d1e92f4bc19f303cfd3ffed490856008eace6df;hpb=ef5d178e008e72c4afb9ac2fe121140f452d9829;p=friendica.git diff --git a/src/Model/Contact.php b/src/Model/Contact.php index 5d1e92f4bc..a6bb882e86 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -359,7 +359,7 @@ class Contact * @throws HTTPException\InternalServerErrorException * @throws \ImagickException */ - public static function isFollowerByURL(string $url, uid $uid): bool + public static function isFollowerByURL(string $url, int $uid): bool { $cid = self::getIdForURL($url, $uid); @@ -1169,11 +1169,11 @@ class Contact * @throws HTTPException\InternalServerErrorException * @throws \ImagickException */ - public static function getIdForURL(string $url, int $uid = 0, $update = null, array $default = []): int + public static function getIdForURL(string $url = null, int $uid = 0, $update = null, array $default = []): int { $contact_id = 0; - if ($url == '') { + if (empty($url)) { Logger::notice('Empty url, quitting', ['url' => $url, 'user' => $uid, 'default' => $default]); return 0; }