Skip to content

Commit

Permalink
Merge pull request PHPMailer#109 from btafoya/master
Browse files Browse the repository at this point in the history
If the autoload stack is not activated then the return value is FALSE.
Synchro committed Sep 15, 2013
2 parents 3441a6d + fa8f517 commit 562a35d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class.phpmailer.php
Original file line number Diff line number Diff line change
@@ -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';
}
}

0 comments on commit 562a35d

Please sign in to comment.