From 2bcad7bf5e7cb60b74037c837a6c856acc2bf93e Mon Sep 17 00:00:00 2001 From: SzymekCRX <59235537+SzymekCRX@users.noreply.github.com> Date: Thu, 28 Oct 2021 07:43:44 +0200 Subject: [PATCH] Critical bug in events.php Two extra brackets causes fatal error in Ajax request causing 500 HTTP error and problems with listing / deleting events --- web/ajax/events.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/ajax/events.php b/web/ajax/events.php index 471f32664..6d87da869 100644 --- a/web/ajax/events.php +++ b/web/ajax/events.php @@ -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']);