Merge branch 'MDL-29402-master' of https://github.com/mackensen/moodle

This commit is contained in:
Sam Hemelryk 2012-02-21 10:44:00 +13:00
commit e6e4fe4f43

View File

@ -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;
}