diff --git a/page-schedule.php b/page-schedule.php index 1de0b7c..b145a46 100644 --- a/page-schedule.php +++ b/page-schedule.php @@ -29,6 +29,8 @@ if (!empty($content)) { echo $content['fulltalks']; echo $content['gspk']; echo $content['fspk']; +} else { + echo "TBA"; } ?> diff --git a/schedule/load.php b/schedule/load.php index a33769a..14b4936 100644 --- a/schedule/load.php +++ b/schedule/load.php @@ -23,7 +23,8 @@ function loadData($config) { $json = $curl->getUrl($config['conferenceId'] . '/' . $filename); if ($json === false) { - echo 'get failed: ', $filename, PHP_EOL; + #echo 'get failed: ', $filename, PHP_EOL; + return false; exit; } diff --git a/schedule/parse.php b/schedule/parse.php index e4ffd6c..23feb37 100644 --- a/schedule/parse.php +++ b/schedule/parse.php @@ -11,6 +11,8 @@ function parseData($config, $data) { ) ); + if ($data === false) return false; + // We need to set these so we actually parse properly the dates. WP fucks up both. date_default_timezone_set('Europe/Sofia'); setlocale(LC_TIME, $languages[$config['lang']]['locale']);