mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 14:48: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'])) {
|
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';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user