From 9731624c87bf4bd12acc117806980b177abc8f71 Mon Sep 17 00:00:00 2001 From: skodak Date: Tue, 3 Oct 2006 18:31:51 +0000 Subject: [PATCH] Assignment Module breaks MyMoodle Page MDL-6802, please test it --- mod/assignment/lib.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mod/assignment/lib.php b/mod/assignment/lib.php index 186be77cee6..27e8d0c1e37 100644 --- a/mod/assignment/lib.php +++ b/mod/assignment/lib.php @@ -2410,8 +2410,7 @@ function assignment_print_overview($courses, &$htmlarray) { } else { $str .= '
'.$strduedateno.'
'; } - - $context = get_context_instance(CONTEXT_MODULE,$this->cm->id); + $context = get_context_instance(CONTEXT_MODULE, $assignment->cm->id); if (has_capability('mod/assignment:grade', $context)) { // count how many people can submit