Fix php error "Trying to access array offset on value of type null"

When using column distinct feature

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2020-01-11 15:40:54 +01:00
parent 99e70491b7
commit cc58506d14
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -4442,7 +4442,7 @@ class Results
$meta
);
} else {
$column_for_first_row = $row[$sorted_column_index];
$column_for_first_row = ($row !== null) ? $row[$sorted_column_index] : '';
}
$column_for_first_row = mb_strtoupper(
@ -4471,7 +4471,7 @@ class Results
$meta
);
} else {
$column_for_last_row = $row[$sorted_column_index];
$column_for_last_row = ($row !== null) ? $row[$sorted_column_index] : '';
}
$column_for_last_row = mb_strtoupper(