Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't send out notifications for hidden assignments until they are un…

…hidden

Bug 1259
  • Loading branch information...
commit c69cb506b8604eb77aefc94978d2ce36f3cf02d6 1 parent 9b690d2
moodler authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 mod/assignment/lib.php
View
4 mod/assignment/lib.php
@@ -228,6 +228,10 @@ function assignment_cron () {
continue;
}
+ if (! $mod->visible) { /// Hold mail notification for hidden assignments until later
+ continue;
+ }
+
$strassignments = get_string("modulenameplural", "assignment");
$strassignment = get_string("modulename", "assignment");
Please sign in to comment.
Something went wrong with that request. Please try again.