Fix genres handling in Console, Games and Music controllers

This commit is contained in:
DariusIII
2018-07-09 10:52:43 +02:00
parent 05a2e05d65
commit 7b5da4c48d
4 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ class GamesController extends BasePageController
$genres = $gen->getGenres(Genres::GAME_TYPE, true);
$tmpgnr = [];
foreach ($genres as $gn) {
$tmpgnr[$gn['id']] = $gn['title'];
$tmpgnr[$gn->id] = $gn->title;
}
$years = range(1903, date('Y') + 1);