diff options
-rw-r--r-- | model/Relive.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/model/Relive.php b/model/Relive.php index 3dfe823..d0e7522 100644 --- a/model/Relive.php +++ b/model/Relive.php @@ -15,6 +15,9 @@ class Relive extends ModelBase public function getTalks() { + if(!file_exists($this->getJsonUrl())) + return array(); + $talks = file_get_contents($this->getJsonUrl()); $talks = (array)json_decode($talks, true); |