From 61cf067be0d7d6b0204e8cf07f795d46d1606af5 Mon Sep 17 00:00:00 2001 From: stevegilvarry Date: Sun, 29 Jun 2014 22:09:59 +1000 Subject: [PATCH] Wrap sort order. Fixes #450 --- web/ajax/log.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/ajax/log.php b/web/ajax/log.php index 7730e5913..a230c892b 100644 --- a/web/ajax/log.php +++ b/web/ajax/log.php @@ -35,7 +35,7 @@ switch ( $_REQUEST['task'] ) $limit = isset($_POST['limit'])?$_POST['limit']:100; $filter = isset($_POST['filter'])?$_POST['filter']:array(); $sortField = isset($_POST['sortField'])?$_POST['sortField']:'TimeKey'; - $sortOrder = isset($_POST['sortOrder']) and $_POST['sortOrder'] == 'asc' ? 'asc':'desc'; + $sortOrder = (isset($_POST['sortOrder']) and $_POST['sortOrder']) == 'asc' ? 'asc':'desc'; $filterFields = array( 'Component', 'Pid', 'Level', 'File', 'Line' );