]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-12104, gradebook is showing 2 scales together
authortoyomoyo <toyomoyo>
Mon, 12 Nov 2007 03:14:47 +0000 (03:14 +0000)
committertoyomoyo <toyomoyo>
Mon, 12 Nov 2007 03:14:47 +0000 (03:14 +0000)
grade/report/grader/lib.php

index 3a0b6eaf862dd2be4a3e7714c17ccebe49379b80..a7d91235da7e07b7615febc07a9cf5be9c976c77 100644 (file)
@@ -726,6 +726,10 @@ class grade_report_grader extends grade_report {
 
                         $scales = explode(",", $scale->scale);
                         // reindex because scale is off 1
+                        
+                        // MDL-12104 some previous scales might have taken up part of the array
+                        // so this needs to be reset
+                        unset($scaleopt);
                         $i = 0;
                         foreach ($scales as $scaleoption) {
                             $i++;