Archived
1
0
Fork 0

fix gamejolt

This commit is contained in:
Alexander Yakovlev 2018-03-02 09:36:03 +07:00
parent 17137bb261
commit f353682a8b

View file

@ -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) {