Quit on empty uri-id
This commit is contained in:
@@ -35,7 +35,7 @@ class Link
|
|||||||
{
|
{
|
||||||
public static function getByLink(int $uri_id, string $url, $size = '')
|
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;
|
return $url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user