summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsun2012-05-25 23:25:44 (GMT)
committer sun2012-05-25 23:28:30 (GMT)
commitb0fb76c2cbf9e9301f666aa4ac0b89362fe4d87e (patch)
tree7cfc24ba4485c80025e6631ee2036ead5293050f
parentd85f4422c5618fa4a0c236225bb5381cdc9a3dce (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 ccfe1fe..7228b9b 100644
--- a/includes/phpmailer.class.inc
+++ b/includes/phpmailer.class.inc
@@ -104,9 +104,8 @@ class DrupalPHPMailer extends PHPMailer {
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();
}