mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-23 06:48:24 -04:00
add missing braces to fix logic
This commit is contained in:
1 parent
a2d4dc974b
commit
326ac60ae4
1 file changed
+3
-2
+3
-2
@@ -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']) )
|
||||
|
||||
Reference in new issue
Block a user