Quit on empty uri-id

This commit is contained in:
Michael 2021-07-06 06:45:53 +00:00
parent dac27ead7a
commit 93309a3728

View File

@ -35,7 +35,7 @@ class Link
{
public static function getByLink(int $uri_id, string $url, $size = '')
{
if (empty($url) || Proxy::isLocalImage($url)) {
if (empty($uri_id) || empty($url) || Proxy::isLocalImage($url)) {
return $url;
}