fix frashes on empty schedule url

This commit is contained in:
Sophie Schiller 2024-05-27 15:03:51 +02:00
parent 7490eec470
commit c03665b7ec

View file

@ -110,6 +110,15 @@ function get_file_cache($conference, $filename)
function download_for_conference($what, $conference, $url, $cache)
{
if(!isset($url))
{
stderr(
' !! %s url for conference %s is not set',
$what,
$conference->getSlug(),
);
return false;
}
$info = parse_url($url);
if(!isset($info['scheme']) || !isset($info['host']))
{