X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FItemURI.php;h=020c468d23a81700bdd2c31e6db56ec2548bd3f6;hb=073695b33c5f9c5d89d91958b09259c59e12dd98;hp=b51ebcb08f44359108baa3f35483ed7ffa6bd51b;hpb=c29c49797a2da8b17e9fc99a1b660a491508c9cd;p=friendica.git diff --git a/src/Model/ItemURI.php b/src/Model/ItemURI.php index b51ebcb08f..020c468d23 100644 --- a/src/Model/ItemURI.php +++ b/src/Model/ItemURI.php @@ -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);