Permalink
Browse files

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

…to MOODLE_22_STABLE
  • Loading branch information...
Sam Hemelryk
Sam Hemelryk committed Feb 20, 2012
2 parents e546d72 + 8cd38f2 commit f2315259923bd97c855732aa050e307bf10b58a1
Showing with 2 additions and 1 deletion.
  1. +2 −1 mod/forum/lib.php
View
@@ -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;
}

0 comments on commit f231525

Please sign in to comment.