Skip to content

Commit

Permalink
If the autoload stack is not activated then the return value is FALSE.
Browse files Browse the repository at this point in the history
  • Loading branch information
btafoya committed Sep 15, 2013
1 parent 3441a6d commit fa8f517
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
Expand Up @@ -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';
}
}
Expand Down

0 comments on commit fa8f517

Please sign in to comment.