From 92a9693d7d5a9346fbd9309e2b2a19424c6d21ba Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Mon, 23 May 2022 01:09:06 +0800 Subject: [PATCH] fix details.php page lack of catsprites.css --- app/Repositories/UserRepository.php | 2 +- include/constants.php | 2 +- include/functions.php | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Repositories/UserRepository.php b/app/Repositories/UserRepository.php index 6c116324..412d87bc 100644 --- a/app/Repositories/UserRepository.php +++ b/app/Repositories/UserRepository.php @@ -28,7 +28,7 @@ class UserRepository extends BaseRepository if (!empty($params['email'])) { $query->where('email', 'like',"%{$params['email']}%"); } - if (!empty($params['class'])) { + if (isset($params['class']) && $params['class'] !== '') { $query->where('class', $params['class']); } list($sortField, $sortType) = $this->getSortFieldAndType($params); diff --git a/include/constants.php b/include/constants.php index 8f655126..44a727e8 100644 --- a/include/constants.php +++ b/include/constants.php @@ -1,6 +1,6 @@ [$setting['browsecat'], $setting['specialcat']], 'userdetails' => [$setting['browsecat'], $setting['specialcat']], 'offers' => [$setting['browsecat'], $setting['specialcat']], + 'details' => [$setting['browsecat'], $setting['specialcat']], ]; return $maps[nexus()->getScript()] ?? []; }