Critical bug in events.php

Two extra brackets causes fatal error in Ajax request causing 500 HTTP error and problems with listing / deleting events
This commit is contained in:
SzymekCRX 2021-10-28 07:43:44 +02:00 committed by Isaac Connor
parent d03365c9e7
commit 9da9d1840c
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 = $filter->sort_asc() ? 'ASC' : 'DESC';
if (isset($_REQUEST['order'])) {
if (strtolower($_REQUEST['order']) == 'asc')) {
if (strtolower($_REQUEST['order']) == 'asc') {
$order = 'ASC';
} else if (strtolower($_REQUEST['order']) == 'desc')) {
} else if (strtolower($_REQUEST['order']) == 'desc') {
$order = 'DESC';
} else {
Warning("Invalid value for order " . $_REQUEST['order']);