use different variable assignment for clarity

pull/3085/head
Andrew Bauer 2020-11-13 07:24:17 -06:00
parent a15c8ea7d8
commit c0225a35aa
1 changed files with 3 additions and 3 deletions

View File

@ -173,7 +173,7 @@ function queryRequest($filter, $search, $advsearch, $sort, $offset, $order, $lim
$unfiltered_rows[] = $row;
}
ZM\Debug('Have ' . count($event_ids) . ' events matching base filter.');
ZM\Debug('Have ' . count($unfiltered_rows) . ' events matching base filter.');
$filtered_rows = null;
@ -238,11 +238,11 @@ function queryRequest($filter, $search, $advsearch, $sort, $offset, $order, $lim
$data['rows'] = $returned_rows;
# totalNotFiltered must equal total, except when either search bar has been used
$data['totalNotFiltered'] = count($event_ids);
$data['totalNotFiltered'] = count($unfiltered_rows);
if ( $search != '' || count($advsearch) ) {
$data['total'] = count($filtered_rows);
} else {
$data['total'] = count($unfiltered_rows);
$data['total'] = $data['totalNotFiltered'];
}
return $data;