diff --git a/mod/assign/locallib.php b/mod/assign/locallib.php index e96aaedcf7e..77e677d52f9 100644 --- a/mod/assign/locallib.php +++ b/mod/assign/locallib.php @@ -6452,8 +6452,8 @@ class assign { // is "Released". $modinfo = get_fast_modinfo($this->course, $userid); $cm = $modinfo->get_cm($this->get_course_module()->id); - if ($formdata->sendstudentnotifications && $flags->mailed != 1 && - $cm->uservisible && $state == ASSIGN_MARKING_WORKFLOW_STATE_RELEASED) { + if ($formdata->sendstudentnotifications && $cm->uservisible && + $state == ASSIGN_MARKING_WORKFLOW_STATE_RELEASED) { $flags->mailed = 0; }