]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/ItemURI.php
Funkwhale context file moved
[friendica.git] / src / Model / ItemURI.php
index b51ebcb08f44359108baa3f35483ed7ffa6bd51b..020c468d23a81700bdd2c31e6db56ec2548bd3f6 100644 (file)
@@ -65,6 +65,10 @@ class ItemURI
         */
        public static function getIdByURI(string $uri): int
        {
+               if (empty($uri)) {
+                       return 0;
+               }
+
                // If the URI gets too long we only take the first parts and hope for best
                $uri = substr($uri, 0, 255);