Pass level of current debug message rather than output setting into display function
This commit is contained in:
parent
66cf4fbaff
commit
a4de1ca5ef
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue