MDL-34376 mod_assign Fixing flaw in previous commit with not defining .

This commit is contained in:
Eric Merrill 2012-08-16 10:05:26 -04:00
parent 007bf47f10
commit 710f1a344f

View 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) {