From 326ac60ae4c4530cb634d66795d3fd6cb2ffdcb4 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Mon, 21 Jan 2019 11:20:56 -0500 Subject: [PATCH] add missing braces to fix logic --- web/ajax/status.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/ajax/status.php b/web/ajax/status.php index 671757831..5d8b90aa6 100644 --- a/web/ajax/status.php +++ b/web/ajax/status.php @@ -274,9 +274,10 @@ function collectData() { } if ( $groupSql ) $sql .= ' GROUP BY '.join( ',', array_unique( $groupSql ) ); - if ( !empty($_REQUEST['sort']) ) + if ( !empty($_REQUEST['sort']) ) { $sql .= ' order by :sort'; - $values[':sort'] = $_REQUEST['sort']; + $values[':sort'] = $_REQUEST['sort']; + } if ( !empty($entitySpec['limit']) ) $limit = $entitySpec['limit']; elseif ( !empty($_REQUEST['count']) )