Фикс парсера Квестбука (появились игры без авторов)
This commit is contained in:
parent
6ad58558e2
commit
026e716025
|
@ -50,11 +50,11 @@ class Questbook extends Source {
|
|||
$date = strtotime($gameBlock['pubDate']);
|
||||
if ($date < $this->period) continue;
|
||||
$game = new Game;
|
||||
$game->title = trim($gameBlock['title']);
|
||||
$game->url = trim($gameBlock['link']);
|
||||
$game->title = trim($gameBlock['title'] ?? '');
|
||||
$game->url = trim($gameBlock['link'] ?? '');
|
||||
$game->url = str_replace('http://', 'https://', $game->url);
|
||||
$game->description = trim($gameBlock['description']);
|
||||
$game->author = trim($gameBlock['author']);
|
||||
$game->description = trim($gameBlock['description'] ?? '');
|
||||
$game->author = trim($gameBlock['author'] ?? '');
|
||||
$this->output .= $game->print();
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue