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,7 +110,16 @@ function get_file_cache($conference, $filename)
function download_for_conference($what, $conference, $url, $cache) function download_for_conference($what, $conference, $url, $cache)
{ {
$info = parse_url($url); 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'])) if(!isset($info['scheme']) || !isset($info['host']))
{ {
stderr( stderr(