fix return too soon when no log results
This commit is contained in:
parent
5ad8e90dda
commit
c166b0de0f
|
@ -165,9 +165,6 @@ function queryRequest() {
|
||||||
|
|
||||||
$rows = array();
|
$rows = array();
|
||||||
$results = dbFetchAll($query['sql'], NULL, $query['values']);
|
$results = dbFetchAll($query['sql'], NULL, $query['values']);
|
||||||
if ( !$results ) {
|
|
||||||
return $data;
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach ( $results as $row ) {
|
foreach ( $results as $row ) {
|
||||||
$row['DateTime'] = strftime('%Y-%m-%d %H:%M:%S', intval($row['TimeKey']));
|
$row['DateTime'] = strftime('%Y-%m-%d %H:%M:%S', intval($row['TimeKey']));
|
||||||
|
|
Loading…
Reference in New Issue