check IFDB author tag to exist
This commit is contained in:
parent
197203d9cc
commit
6ad58558e2
|
@ -40,7 +40,9 @@ class IFDB extends Source {
|
|||
$title = str_replace('A new listing for ', '', $title);
|
||||
$title = explode(' by ', $title);
|
||||
$game->title = $title[0];
|
||||
$game->author = $title[1];
|
||||
if (isset($title[1])) {
|
||||
$game->author = $title[1];
|
||||
}
|
||||
}
|
||||
if (isset($keyValue['{}link'])) {
|
||||
$game->url = $keyValue['{}link'];
|
||||
|
|
Reference in a new issue