Permalink
Browse files

Merge branch 'MDL-35437' of https://github.com/raymondAntonio/moodle

  • Loading branch information...
2 parents f7b3ac9 + 49b6109 commit 61badb5989ec8c4f84d0d91370b5bb9cafa6bc62 @danpoltawski danpoltawski committed Oct 2, 2012
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 61badb5

Please sign in to comment.