diff --git a/Blacklight/Console.php b/Blacklight/Console.php index a30259193..4fdf462c2 100755 --- a/Blacklight/Console.php +++ b/Blacklight/Console.php @@ -852,12 +852,14 @@ class Console $platform = ''; - foreach ($game->platforms as $platforms) { - $platforms = IGDB::getPlatform($platforms); - similar_text($platforms->name, $gamePlatform, $percent); - if ($percent >= 85) { - $platform = $platforms->name; - break; + if (! empty($game->platforms)) { + foreach ($game->platforms as $platforms) { + $platforms = IGDB::getPlatform($platforms); + similar_text($platforms->name, $gamePlatform, $percent); + if ($percent >= 85) { + $platform = $platforms->name; + break; + } } }