Commit dd5f2c15 authored by sun's avatar sun

- #1411818 by sun: Fixed Notice: Undefined variable: debug in DrupalPHPMailer->SmtpSend().

parent 47f86ffa
......@@ -104,9 +104,8 @@ class DrupalPHPMailer extends PHPMailer implements MailSystemInterface {
catch (phpmailerException $exception) {}
if ($this->SMTPDebug) {
$this->drupalDebugOutput = ob_get_contents();
if ($this->drupalDebug && $this->drupalDebugOutput) {
drupal_set_message($debug);
if ($this->drupalDebug && ($this->drupalDebugOutput = ob_get_contents())) {
drupal_set_message($this->drupalDebugOutput);
}
ob_end_clean();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment