add missing braces to fix logic

This commit is contained in:
Isaac Connor committed 2019-01-21 11:20:56 -05:00
1 parent a2d4dc974b
commit 326ac60ae4
1 file changed
+3 -2
+3 -2
View File
@@ -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']) )