From c69cb506b8604eb77aefc94978d2ce36f3cf02d6 Mon Sep 17 00:00:00 2001 From: moodler Date: Sat, 24 Apr 2004 04:51:56 +0000 Subject: [PATCH] Don't send out notifications for hidden assignments until they are unhidden Bug 1259 --- mod/assignment/lib.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mod/assignment/lib.php b/mod/assignment/lib.php index 0d66120f94..b23c2ee104 100644 --- a/mod/assignment/lib.php +++ b/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"); -- 2.39.5