MDL-34376 mod_assign Fixing flaw in previous commit with not defining .
authorEric Merrill <merrill@oakland.edu>
Thu, 16 Aug 2012 14:05:26 +0000 (10:05 -0400)
committerEric Merrill <merrill@oakland.edu>
Thu, 16 Aug 2012 14:05:26 +0000 (10:05 -0400)
mod/assign/lib.php

index f423fa3..1c98958 100644 (file)
@@ -213,6 +213,7 @@ function assign_print_overview($courses, &$htmlarray) {
     // Do assignment_base::isopen() here without loading the whole thing for speed
     foreach ($assignments as $key => $assignment) {
         $time = time();
+        $isopen = false;
         if ($assignment->duedate) {
             $isopen = $assignment->allowsubmissionsfromdate <= $time;
             if ($assignment->preventlatesubmissions) {