X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FContact.php;h=a6bb882e8652c8ea0496656ba39a310ba8cbe087;hb=073695b33c5f9c5d89d91958b09259c59e12dd98;hp=5997b1569b1b56ffe05a04d0cf8ddecbe5cbe015;hpb=0a19759e4f7d916e1f5172c010c89936f3c5d12d;p=friendica.git diff --git a/src/Model/Contact.php b/src/Model/Contact.php index 5997b1569b..a6bb882e86 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -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; }