MDL-12048, assignment grades not migrated into 1.9

This commit is contained in:
toyomoyo
2007-11-07 04:27:53 +00:00
parent 69eedfa2fe
commit 0646497a1e
+1 -1
View File
@@ -2098,7 +2098,7 @@ function assignment_update_grades($assignment=null, $userid=0, $nullifnone=true)
WHERE m.name='assignment' AND m.id=cm.module AND cm.instance=a.id";
if ($rs = get_recordset_sql($sql)) {
while ($assignment = rs_fetch_next_record($rs)) {
if ($assignment->grade == 0) {
if ($assignment->grade != 0) {
assignment_update_grades($assignment);
} else {
assignment_grade_item_update($assignment);