From ed202f0f9e8162e613b124d7f9135c0c9a5b26da Mon Sep 17 00:00:00 2001 From: DariusIII Date: Fri, 26 Dec 2025 20:40:54 +0100 Subject: [PATCH] Fix error on details page --- app/Http/Controllers/DetailsController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/DetailsController.php b/app/Http/Controllers/DetailsController.php index 23da6328a..4d84a23de 100644 --- a/app/Http/Controllers/DetailsController.php +++ b/app/Http/Controllers/DetailsController.php @@ -117,22 +117,22 @@ class DetailsController extends BasePageController } $game = ''; - if ($data['gamesinfo_id'] !== '') { + if (! empty($data['gamesinfo_id'])) { $game = (new GamesService)->getGamesInfoById($data['gamesinfo_id']); } $mus = ''; - if ($data['musicinfo_id'] !== '') { + if (! empty($data['musicinfo_id'])) { $mus = (new Music)->getMusicInfo($data['musicinfo_id']); } $book = ''; - if ($data['bookinfo_id'] !== '') { + if (! empty($data['bookinfo_id'])) { $book = (new BookService)->getBookInfo($data['bookinfo_id']); } $con = ''; - if ($data['consoleinfo_id'] !== '') { + if (! empty($data['consoleinfo_id'])) { $con = (new ConsoleService)->getConsoleInfo($data['consoleinfo_id']); }