summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsun2012-05-25 23:25:44 (GMT)
committer sun2012-05-25 23:25:44 (GMT)
commitdd5f2c15922f4af54da0131811f5dbe3fc5b6776 (patch)
tree08751c6f3c59a222e757d08e1e60967684117722
parent47f86ffa730deaeea72e1427b93ec441bfe7a8d5 (diff)
- #1411818 by sun: Fixed Notice: Undefined variable: debug in DrupalPHPMailer->SmtpSend().
-rw-r--r--includes/phpmailer.class.inc5
1 files changed, 2 insertions, 3 deletions
diff --git a/includes/phpmailer.class.inc b/includes/phpmailer.class.inc
index d2d5ce5..b8fd6b4 100644
--- a/includes/phpmailer.class.inc
+++ b/includes/phpmailer.class.inc
@@ -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();
}