Skip to content

Commit

Permalink
MDL-8759 - Unset $USER
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasconnault committed Mar 6, 2007
1 parent 2fd2fdb commit f398c77
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mod/forum/lib.php
Expand Up @@ -382,7 +382,9 @@ function forum_cron() {
$postsubject = "$course->shortname: ".format_string($post->subject,true);
$posttext = forum_make_mail_text($course, $forum, $discussion, $post, $userfrom, $userto);
$posthtml = forum_make_mail_html($course, $forum, $discussion, $post, $userfrom, $userto);


unset($USER);

if (!$mailresult = email_to_user($userto, $userfrom, $postsubject, $posttext,
$posthtml, '', '', $CFG->forum_replytouser)) {
mtrace("Error: mod/forum/cron.php: Could not send out mail for id $post->id to user $userto->id".
Expand Down

0 comments on commit f398c77

Please sign in to comment.