mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-79426 gradeimport_csv: safely preview CSV content during import.
This commit is contained in:
parent
04db4a3e54
commit
369c5407ab
@ -67,8 +67,10 @@ class gradeimport_csv_renderer extends plugin_renderer_base {
|
||||
$html = $this->output->heading(get_string('importpreview', 'grades'));
|
||||
|
||||
$table = new html_table();
|
||||
$table->head = $header;
|
||||
$table->data = $data;
|
||||
$table->head = array_map('s', $header);
|
||||
$table->data = array_map(static function($row) {
|
||||
return array_map('s', $row);
|
||||
}, $data);
|
||||
$html .= html_writer::table($table);
|
||||
|
||||
return $html;
|
||||
|
Loading…
x
Reference in New Issue
Block a user