Skip to content

Commit

Permalink
Merge branch 'wip-MDL-41196-m26' of git://github.com/samhemelryk/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
Damyon Wiese committed Aug 22, 2013
2 parents 52ef750 + ba214fa commit 50cb891
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/phpmailer/moodle_phpmailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function EncodeQP($string, $line_max = 76, $space_conv = false) {
*/
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;
Expand Down

0 comments on commit 50cb891

Please sign in to comment.