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'])) {
$cond[] = [
'is_hidden' => '1',
];
$cond['problems.is_hidden'] = true;
}
if (Auth::check() && isset($_GET['my'])) {
$cond[] = [
'uploader' => Auth::id(),
];
$cond['problems.uploader'] = Auth::id();
}
if (!$cond) {
if (empty($cond)) {
$cond = '1';
}