Permalink
Browse files

MDL-29402 QandA forum questions should be emailed

  • Loading branch information...
1 parent 52e6baa commit 57aefd21245f7cefb31c05c21ab45306c6366508 @mackensen mackensen committed Feb 14, 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 57aefd2

Please sign in to comment.