Skip to content

Commit

Permalink
checking duedate range (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Opitz committed Jan 20, 2025
1 parent b540354 commit ae79afc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion block_my_feedback.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ public static function add_mod_data(cm_info $mod, stdClass $assess): bool {
$duedate = feedback_tracker::get_duedate($mod);
}

if ($duedate === 0) {
// Check mod has due date, and due date is in range.
if (($duedate === 0) || (!self::duedate_in_range($duedate))) {
return false;
}

Expand Down

0 comments on commit ae79afc

Please sign in to comment.