Skip to content

Commit

Permalink
fixed: make sure preview does not crash on null value fields
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalsem committed Sep 21, 2023
1 parent 50ece23 commit ec95642
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions views/default/csv_exporter/preview.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

$header = [];
foreach ($column_config as $label) {
$header[] = elgg_format_element('th', [], $label);
$header[] = elgg_format_element('th', [], (string) $label);
}

$header = elgg_format_element('tr', [], implode(PHP_EOL, $header));
Expand Down Expand Up @@ -102,7 +102,7 @@
$value = implode(', ', $value);
}

$row[] = elgg_format_element('td', [], $value);
$row[] = elgg_format_element('td', [], (string) $value);
}

$rows[] = elgg_format_element('tr', [], implode(PHP_EOL, $row));
Expand Down

0 comments on commit ec95642

Please sign in to comment.