Skip to content

Commit

Permalink
MDL-12048, assignment grades not migrated into 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
toyomoyo committed Nov 7, 2007
1 parent b25d908 commit 0b7870f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/assignment/lib.php
Expand Up @@ -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);
Expand Down

0 comments on commit 0b7870f

Please sign in to comment.