diff --git a/class.smtp.php b/class.smtp.php index 9bb970d8..b5a7ccc0 100644 --- a/class.smtp.php +++ b/class.smtp.php @@ -206,7 +206,7 @@ class SMTP } //Avoid clash with built-in function names if (!in_array($this->Debugoutput, array('error_log', 'html', 'echo')) and is_callable($this->Debugoutput)) { - call_user_func($this->Debugoutput, $str, $this->do_debug); + call_user_func($this->Debugoutput, $str, $level); return; } switch ($this->Debugoutput) {