From fa8f51794018b7a1948a9f1fde33875e36196c70 Mon Sep 17 00:00:00 2001 From: btafoya Date: Sun, 15 Sep 2013 00:13:34 -0700 Subject: [PATCH] If the autoload stack is not activated then the return value is FALSE. --- class.phpmailer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class.phpmailer.php b/class.phpmailer.php index fe37a93b..a62eb0b1 100644 --- a/class.phpmailer.php +++ b/class.phpmailer.php @@ -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'; } }