mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-01 10:48:53 +00:00
Fix genres handling in Console, Games and Music controllers
This commit is contained in:
@@ -79,7 +79,7 @@ class ConsoleController extends BasePageController
|
||||
$genres = $gen->getGenres(Genres::CONSOLE_TYPE, true);
|
||||
$tmpgnr = [];
|
||||
foreach ($genres as $gn) {
|
||||
$tmpgnr[$gn['id']] = $gn['title'];
|
||||
$tmpgnr[$gn->id] = $gn->title;
|
||||
}
|
||||
$genre = ($request->has('genre') && array_key_exists($request->input('genre'), $tmpgnr)) ? $request->input('genre') : '';
|
||||
$this->smarty->assign('genres', $genres);
|
||||
|
||||
Reference in New Issue
Block a user