Skip to content

Commit a4de1ca

Browse files
committed
Pass level of current debug message rather than output setting into display function
1 parent 66cf4fb commit a4de1ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

class.smtp.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ protected function edebug($str, $level = 0)
206206
}
207207
//Avoid clash with built-in function names
208208
if (!in_array($this->Debugoutput, array('error_log', 'html', 'echo')) and is_callable($this->Debugoutput)) {
209-
call_user_func($this->Debugoutput, $str, $this->do_debug);
209+
call_user_func($this->Debugoutput, $str, $level);
210210
return;
211211
}
212212
switch ($this->Debugoutput) {

0 commit comments

Comments
 (0)