diff --git a/class.phpmailer.php b/class.phpmailer.php index fe37a93bf..a62eb0b10 100644 --- a/class.phpmailer.php +++ b/class.phpmailer.php @@ -571,7 +571,7 @@ public function __construct($exceptions = false) { $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'; } }