diff --git a/Source/Gamejolt.php b/Source/Gamejolt.php index 94e9b10..4180263 100644 --- a/Source/Gamejolt.php +++ b/Source/Gamejolt.php @@ -7,6 +7,10 @@ class Gamejolt extends Source { public $title = "GameJolt"; protected function parse_tag($url) { $data = json_decode($this->get_text($url)); + if (empty($data) or !isset($data->payload)) { + echo 'GameJolt data empty'; + return; + } $games = $data->payload->games; if (count($games) > 0) { foreach ($games as $gameData) {