Permalink
Browse files

MDL-35437: mod_assign: Stop Moodle from giving out a notice when grad…

…ing worksheets with missing columns are uploaded via 'Upload grading worksheet' option in the drop-down menu
  • Loading branch information...
Raymond Wijaya
Raymond Wijaya committed Sep 19, 2012
1 parent 412d7c7 commit 49b6109666aee053b0565e58c330de53f6918d37
Showing with 4 additions and 2 deletions.
  1. +4 −2 mod/assign/feedback/offline/importgradeslib.php
@@ -160,8 +160,10 @@ public function next() {
$result->user = $this->validusers[$userid];
$result->feedback = array();
foreach ($this->feedbackcolumnindexes as $description => $details) {
- $details['value'] = $record[$details['index']];
- $result->feedback[] = $details;
+ if (!empty($details['index'])) {
+ $details['value'] = $record[$details['index']];
+ $result->feedback[] = $details;
+ }
}
return $result;

0 comments on commit 49b6109

Please sign in to comment.