diff --git a/mod/forum/classes/message/inbound/reply_handler.php b/mod/forum/classes/message/inbound/reply_handler.php index 90a80456f36..86d91d54625 100644 --- a/mod/forum/classes/message/inbound/reply_handler.php +++ b/mod/forum/classes/message/inbound/reply_handler.php @@ -147,7 +147,7 @@ class reply_handler extends \core\message\inbound\handler { $newsubject = $post->subject; if (!strpos($restring, $post->subject)) { // The previous post did not contain a re string, add it. - $newsubject = $restring . ' ' . $subject; + $newsubject = $restring . ' ' . $newsubject; } mtrace("--> Note: Post subject matched original post subject. Optimising from {$subject} to {$newsubject}"); $subject = $newsubject;