Merge branch 'wip-MDL-41196-m25' of git://github.com/samhemelryk/moodle into MOODLE_25_STABLE

This commit is contained in:
Damyon Wiese
2013-08-22 11:21:46 +08:00
+1 -1
View File
@@ -128,7 +128,7 @@ class moodle_phpmailer extends PHPMailer {
protected function PostSend() {
// Now ask phpunit if it wants to catch this message.
if (phpunit_util::is_redirecting_messages()) {
if (PHPUNIT_TEST && phpunit_util::is_redirecting_messages()) {
$mail = new stdClass();
$mail->header = $this->MIMEHeader;
$mail->body = $this->MIMEBody;