0
0
mirror of https://github.com/PHPMailer/PHPMailer.git synced 2024-09-20 10:02:14 +02:00

wrong location of is_callable()'s closing parenthesis (#1890)

This commit is contained in:
mhdalvin 2019-11-14 14:50:24 +07:00 committed by Marcus Bointon
parent 0ae8505d26
commit 4fd3c57b2d

View File

@ -878,7 +878,7 @@ class PHPMailer
return;
}
//Avoid clash with built-in function names
if (is_callable($this->Debugoutput && !in_array($this->Debugoutput, ['error_log', 'html', 'echo']))) {
if (is_callable($this->Debugoutput) && !in_array($this->Debugoutput, ['error_log', 'html', 'echo'])) {
call_user_func($this->Debugoutput, $str, $this->SMTPDebug);
return;