schedule: display TBA on missing data
This commit is contained in:
parent
bd9e467ac7
commit
ac3a19bf73
|
@ -29,6 +29,8 @@ if (!empty($content)) {
|
||||||
echo $content['fulltalks'];
|
echo $content['fulltalks'];
|
||||||
echo $content['gspk'];
|
echo $content['gspk'];
|
||||||
echo $content['fspk'];
|
echo $content['fspk'];
|
||||||
|
} else {
|
||||||
|
echo "TBA";
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -23,7 +23,8 @@ function loadData($config) {
|
||||||
$json = $curl->getUrl($config['conferenceId'] . '/' . $filename);
|
$json = $curl->getUrl($config['conferenceId'] . '/' . $filename);
|
||||||
|
|
||||||
if ($json === false) {
|
if ($json === false) {
|
||||||
echo 'get failed: ', $filename, PHP_EOL;
|
#echo 'get failed: ', $filename, PHP_EOL;
|
||||||
|
return false;
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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.
|
// We need to set these so we actually parse properly the dates. WP fucks up both.
|
||||||
date_default_timezone_set('Europe/Sofia');
|
date_default_timezone_set('Europe/Sofia');
|
||||||
setlocale(LC_TIME, $languages[$config['lang']]['locale']);
|
setlocale(LC_TIME, $languages[$config['lang']]['locale']);
|
||||||
|
|
Loading…
Reference in New Issue