Skip to content

Commit

Permalink
MDL-29402 QandA forum questions should be emailed
Browse files Browse the repository at this point in the history
  • Loading branch information
mackensen committed Feb 14, 2012
1 parent 52e6baa commit 57aefd2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mod/forum/lib.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -520,7 +520,8 @@ function forum_cron() {
} }


// Don't send email if the forum is Q&A and the user has not posted // 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'); mtrace('Did not email '.$userto->id.' because user has not posted in discussion');
continue; continue;
} }
Expand Down

0 comments on commit 57aefd2

Please sign in to comment.