return if $furl is empty for some reason

This commit is contained in:
Mario Vavti
2025-01-24 12:43:12 +01:00
parent 89b254dc1c
commit 174469970a

View File

@@ -143,6 +143,10 @@ function oembed_fetch_url($embedurl){
$furl = ((local_channel() && $zrl) ? zid($embedurl) : $embedurl);
if (empty($furl)) {
return;
}
if($action !== 'block' && (! Config::Get('system','oembed_cache_disable'))) {
$txt = Cache::get('[' . App::$videowidth . '] ' . $furl);
}