Quit on empty uri-id
This commit is contained in:
parent
dac27ead7a
commit
93309a3728
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue