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:
parent
d03365c9e7
commit
9da9d1840c
|
@ -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']);
|
||||||
|
|
Loading…
Reference in New Issue