mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-10 02:18:41 +00:00
fix(web/problem_set): is_hidden, my filter
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
a83f8302dc
commit
079c405277
@ -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';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user