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

Merge pull request #109 from btafoya/master

If the autoload stack is not activated then the return value is FALSE.
This commit is contained in:
Marcus Bointon 2013-09-15 10:55:49 -07:00
commit 562a35dcee

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