mirror of
https://github.com/voc/streaming-website
synced 2024-11-10 06:34:17 +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,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(
|
||||||
|
|
Loading…
Reference in a new issue