mirror of
https://github.com/voc/streaming-website
synced 2024-09-20 06:22:03 +00:00
fix frashes on empty schedule url
This commit is contained in:
parent
7490eec470
commit
c03665b7ec
1 changed files with 10 additions and 1 deletions
|
@ -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']))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue