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:07:31 +0000 (10:07 -0400)
mod/assign/lib.php

index 5ca8423..2da6610 100644 (file)
@@ -212,6 +212,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) {