Replace for with foreach in Display\Results::getTable

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2022-05-07 14:13:18 -03:00
parent 50c9d6099c
commit e2c4c4a10f
No known key found for this signature in database
GPG Key ID: 6A16FD38AFC89CC8

View File

@ -4152,15 +4152,10 @@ class Results
$sort_direction[] = '';
}
$number_of_columns = count($sort_expression_nodirection);
// 1.4 Prepares display of first and last value of the sorted column
$sorted_column_message = '';
for ($i = 0; $i < $number_of_columns; $i++) {
$sorted_column_message .= $this->getSortedColumnMessage(
$dt_result,
$sort_expression_nodirection[$i]
);
foreach ($sort_expression_nodirection as $expression) {
$sorted_column_message .= $this->getSortedColumnMessage($dt_result, $expression);
}
// 2. ----- Prepare to display the top of the page -----