mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Merge branch 'w23_MDL-33103_m23_dataestrict' of git://github.com/skodak/moodle
This commit is contained in:
commit
f064f0fd15
@ -100,7 +100,9 @@ if (!$formdata = $form->get_data()) {
|
||||
$iid = csv_import_reader::get_new_iid('moddata');
|
||||
$cir = new csv_import_reader($iid, 'moddata');
|
||||
|
||||
$readcount = $cir->load_csv_content($form->get_file_content('recordsfile'), $formdata->encoding, $formdata->fielddelimiter);
|
||||
$filecontent = $form->get_file_content('recordsfile');
|
||||
$readcount = $cir->load_csv_content($filecontent, $formdata->encoding, $formdata->fielddelimiter);
|
||||
unset($filecontent);
|
||||
if (empty($readcount)) {
|
||||
print_error('csvfailed','data',"{$CFG->wwwroot}/mod/data/edit.php?d={$data->id}");
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user