Archived
1
0
Fork 0

(Аперо) Не падать, если не нашёл даты

This commit is contained in:
Alexander Yakovlev 2018-09-15 18:46:17 +07:00
parent a1b1cc5936
commit 8afce92f3c

View file

@ -83,7 +83,12 @@ class Apero extends Source {
return true;
}
return false;
})->first()->attr('content');
})->first();
if ($date->count() > 0) {
$date = $date->attr('content');
} else {
$date = NULL;
}
$game->date = \DateTime::createFromFormat('Y-M-d', $date);
// TODO description
return $game;