Skip to content

Commit

Permalink
MDL-34376 mod_assign Fixing flaw in previous commit with not defining .
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmerrill committed Aug 16, 2012
1 parent 007bf47 commit 710f1a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mod/assign/lib.php
Expand Up @@ -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) {
Expand Down

0 comments on commit 710f1a3

Please sign in to comment.