mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Fix console platform lookup
This commit is contained in:
@@ -744,11 +744,13 @@ class Console
|
||||
|
||||
if (! empty($game->platforms)) {
|
||||
foreach ($game->platforms as $platforms) {
|
||||
$platforms = Platform::where('id', $platforms->platform)->get();
|
||||
similar_text($platforms->name, $gamePlatform, $percent);
|
||||
if ($percent >= 85) {
|
||||
$platform = $platforms->name;
|
||||
break;
|
||||
$gamePlatforms = Platform::where('id', $platforms)->get();
|
||||
foreach ($gamePlatforms as $gamePlat) {
|
||||
similar_text($gamePlat->name, $gamePlatform, $percent);
|
||||
if ($percent >= 85) {
|
||||
$platform = $gamePlat->name;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user