]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Contact.php
Funkwhale context file moved
[friendica.git] / src / Model / Contact.php
index 5997b1569b1b56ffe05a04d0cf8ddecbe5cbe015..a6bb882e8652c8ea0496656ba39a310ba8cbe087 100644 (file)
@@ -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;
                }