From: skodak Date: Fri, 13 Jul 2007 07:51:10 +0000 (+0000) Subject: fixed == typo, thanks Nicolas and Yu X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=fb46b5b6ef367dfbc40a68339854d030c2cb3f44;p=moodle.git fixed == typo, thanks Nicolas and Yu --- diff --git a/lib/gradelib.php b/lib/gradelib.php index 094996623d..d6191d8595 100644 --- a/lib/gradelib.php +++ b/lib/gradelib.php @@ -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()) {