mirror of
https://github.com/moodle/moodle.git
synced 2025-02-08 09:02:07 +01:00
Merge branch 'MDL-29402-master' of https://github.com/mackensen/moodle
This commit is contained in:
commit
e6e4fe4f43
@ -523,7 +523,8 @@ function forum_cron() {
|
||||
}
|
||||
|
||||
// Don't send email if the forum is Q&A and the user has not posted
|
||||
if ($forum->type == 'qanda' && !forum_get_user_posted_time($discussion->id, $userto->id)) {
|
||||
// Initial topics are still mailed
|
||||
if ($forum->type == 'qanda' && !forum_get_user_posted_time($discussion->id, $userto->id) && $pid != $discussion->firstpost) {
|
||||
mtrace('Did not email '.$userto->id.' because user has not posted in discussion');
|
||||
continue;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user