fix(web/problem_set): is_hidden, my filter
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2022-11-06 16:23:08 +08:00
parent a83f8302dc
commit 079c405277
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -107,18 +107,14 @@ if ($search_content !== '') {
} }
if (isset($_GET['is_hidden'])) { if (isset($_GET['is_hidden'])) {
$cond[] = [ $cond['problems.is_hidden'] = true;
'is_hidden' => '1',
];
} }
if (Auth::check() && isset($_GET['my'])) { if (Auth::check() && isset($_GET['my'])) {
$cond[] = [ $cond['problems.uploader'] = Auth::id();
'uploader' => Auth::id(),
];
} }
if (!$cond) { if (empty($cond)) {
$cond = '1'; $cond = '1';
} }