X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FItemURI.php;h=1755552299741b6884060ea8e4452c75b4aac13d;hb=3a0b0ffce5f26f9de8ae0f716d0c964f93662479;hp=3194097f31ad0e5bbad4680b1c2580793267db4f;hpb=360614d2cf3aceeb763ef1281ad5236878f5d735;p=friendica.git diff --git a/src/Model/ItemURI.php b/src/Model/ItemURI.php index 3194097f31..1755552299 100644 --- a/src/Model/ItemURI.php +++ b/src/Model/ItemURI.php @@ -81,4 +81,14 @@ class ItemURI return $itemuri['id'] ?? 0; } + + /** + * @param int $uriId + * @return bool + * @throws \Exception + */ + public static function exists(int $uriId): bool + { + return DBA::exists('item-uri', ['id' => $uriId]); + } }