Merge pull request #3381 from SzymekCRX/patch-1

Critical bug in events.php
This commit is contained in:
Isaac Connor 2021-10-28 09:13:23 -04:00 committed by GitHub
commit a946c45614
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -43,9 +43,9 @@ $advsearch = isset($_REQUEST['advsearch']) ? json_decode($_REQUEST['advsearch'],
// Order specifies the sort direction, either asc or desc // Order specifies the sort direction, either asc or desc
$order = $filter->sort_asc() ? 'ASC' : 'DESC'; $order = $filter->sort_asc() ? 'ASC' : 'DESC';
if (isset($_REQUEST['order'])) { if (isset($_REQUEST['order'])) {
if (strtolower($_REQUEST['order']) == 'asc')) { if (strtolower($_REQUEST['order']) == 'asc') {
$order = 'ASC'; $order = 'ASC';
} else if (strtolower($_REQUEST['order']) == 'desc')) { } else if (strtolower($_REQUEST['order']) == 'desc') {
$order = 'DESC'; $order = 'DESC';
} else { } else {
Warning("Invalid value for order " . $_REQUEST['order']); Warning("Invalid value for order " . $_REQUEST['order']);