Permalink
Browse files

Merge branch 'MDL-29402-21' of https://github.com/mackensen/moodle in…

…to MOODLE_21_STABLE
  • Loading branch information...
2 parents 7330425 + 57aefd2 commit d7375d7ecba6b2ee5659fe3b6d685b9f0ea4fb49 Sam Hemelryk committed Feb 20, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 mod/forum/lib.php
View
@@ -520,7 +520,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;
}

0 comments on commit d7375d7

Please sign in to comment.