From a4de1ca5efeebf155a2a0a17840c19ac53555dee Mon Sep 17 00:00:00 2001 From: Marcus Bointon Date: Mon, 17 Oct 2016 18:21:50 +0200 Subject: [PATCH] Pass level of current debug message rather than output setting into display function --- class.smtp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {