MDL-12840 - gradebook CSV import was failing due to newlines with nothing

on them
merged from MOODLE_19_STABLE
This commit is contained in:
poltawski 2008-01-08 22:25:07 +00:00
parent 319038c39d
commit 46decdf5d9

View File

@ -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