If the autoload stack is not activated then the return value is FALSE.

This commit is contained in:
btafoya 2013-09-15 00:13:34 -07:00
parent 3441a6dd54
commit fa8f517940
1 changed files with 1 additions and 1 deletions

View File

@ -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';
}
}