From fb46b5b6ef367dfbc40a68339854d030c2cb3f44 Mon Sep 17 00:00:00 2001 From: skodak Date: Fri, 13 Jul 2007 07:51:10 +0000 Subject: [PATCH] fixed == typo, thanks Nicolas and Yu --- lib/gradelib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) { -- 2.39.5