If the autoload stack is not activated then the return value is FALSE.
This commit is contained in:
parent
3441a6dd54
commit
fa8f517940
|
|
@ -571,7 +571,7 @@ class PHPMailer
|
|||
{
|
||||
$this->exceptions = ($exceptions == true);
|
||||
//Make sure our autoloader is loaded
|
||||
if (!in_array('PHPMailerAutoload', spl_autoload_functions())) {
|
||||
if (!spl_autoload_functions() || !in_array('PHPMailerAutoload', spl_autoload_functions())) {
|
||||
require 'PHPMailerAutoload.php';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue