From 1e966b8ae367262119da302875a995da9f9a6db8 Mon Sep 17 00:00:00 2001 From: Charles Fulton Date: Tue, 14 Feb 2012 06:01:05 -0800 Subject: [PATCH] MDL-29402 QandA forum questions should be emailed --- mod/forum/lib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mod/forum/lib.php b/mod/forum/lib.php index f36d56e81e2..80433b67d6d 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -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; }