]> git.mjollnir.org Git - moodle.git/commitdiff
fixed == typo, thanks Nicolas and Yu
authorskodak <skodak>
Fri, 13 Jul 2007 07:51:10 +0000 (07:51 +0000)
committerskodak <skodak>
Fri, 13 Jul 2007 07:51:10 +0000 (07:51 +0000)
lib/gradelib.php

index 094996623df0c96721e471dbeeef57fb71ff7e31..d6191d85956a8d4df22718da700ceb70a8e651bd 100644 (file)
@@ -340,7 +340,7 @@ function grade_regrade_final_grades($courseid, $userid=null, $updated_item=null)
     // this is slower, but 100% accurate - this function is called only when there is
     // a change in grading setup, update of individual grade does not trigger this function
     foreach ($grade_items as $gid=>$gitem) {
-        if (!empty($updated_item) and $updated_item->id = $gid) {
+        if (!empty($updated_item) and $updated_item->id == $gid) {
             $grade_items[$gid]->needsupdate = 1;
 
         } else if ($grade_items[$gid]->is_category_item() or $grade_items[$gid]->is_calculated()) {