Merge #15653 - php 7.4 type error

Fixes: #15640
Pull-request: #15653

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2019-12-18 21:42:42 +01:00
commit 87a84b396c
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -1184,7 +1184,7 @@ class Results
for ($j = 0; $j < $number_of_columns; $j++) {
// PHP 7.4 fix for accessing array offset on bool
$col_visib_current = is_array($col_visib) ? $col_visib[$j] : null;
$col_visib_current = is_array($col_visib) && isset($col_visib[$j]) ? $col_visib[$j] : null;
// assign $i with the appropriate column order
$i = $col_order ? $col_order[$j] : $j;