mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-12840 - gradebook CSV import was failing due to newlines with nothing
on them merged from MOODLE_19_STABLE
This commit is contained in:
parent
319038c39d
commit
46decdf5d9
@ -222,6 +222,11 @@ if ($formdata = $mform->get_data()) {
|
||||
// add something
|
||||
$line = split($csv_delimiter, fgets($fp,1024));
|
||||
|
||||
if(count($line) <= 1){
|
||||
// there is no data on this line, move on
|
||||
continue;
|
||||
}
|
||||
|
||||
// array to hold all grades to be inserted
|
||||
$newgrades = array();
|
||||
// array to hold all feedback
|
||||
|
Loading…
x
Reference in New Issue
Block a user