Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit 49b6109666aee053b0565e58c330de53f6918d37 1 parent 412d7c7
Raymond Antonio Wijaya authored September 19, 2012
6  mod/assign/feedback/offline/importgradeslib.php
@@ -160,8 +160,10 @@ public function next() {
160 160
                     $result->user = $this->validusers[$userid];
161 161
                     $result->feedback = array();
162 162
                     foreach ($this->feedbackcolumnindexes as $description => $details) {
163  
-                        $details['value'] = $record[$details['index']];
164  
-                        $result->feedback[] = $details;
  163
+                        if (!empty($details['index'])) {
  164
+                            $details['value'] = $record[$details['index']];
  165
+                            $result->feedback[] = $details;
  166
+                        }
165 167
                     }
166 168
 
167 169
                     return $result;

0 notes on commit 49b6109

Please sign in to comment.
Something went wrong with that request. Please try again.