]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed display of "done" assignments
authormoodler <moodler>
Sun, 20 Oct 2002 05:35:48 +0000 (05:35 +0000)
committermoodler <moodler>
Sun, 20 Oct 2002 05:35:48 +0000 (05:35 +0000)
mod/assignment/index.php

index 2450e045a91aac0e4610ea81756dc2e27183f2c8..3d74c6aafd327e4a3c141bca5c4ab7e2406d16eb 100644 (file)
@@ -46,7 +46,7 @@
     }
 
     foreach ($assignments as $assignment) {
-        if ($submission = assignment_get_submission($assignment->id, $USER->id)) {
+        if ($submission = assignment_get_submission($assignment, $USER)) {
             if ($submission->timemodified <= $assignment->timedue) {
                 $submitted = userdate($submission->timemodified);
             } else {