Permalink
Browse files

MDL-29402 QandA forum questions should be emailed

  • Loading branch information...
mackensen committed Feb 14, 2012
1 parent 5fc420e commit 1e966b8ae367262119da302875a995da9f9a6db8
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 1e966b8

Please sign in to comment.