Skip to content

Commit

Permalink
Avoid a wrong param type warning in constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Synchro committed Jan 21, 2014
1 parent 6767b0f commit e1023b6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions class.phpmailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -566,9 +566,11 @@ public function __construct($exceptions = false)
{
$this->exceptions = ($exceptions == true);
//Make sure our autoloader is loaded
if (version_compare(PHP_VERSION, '5.1.2', '>=') and
!spl_autoload_functions() || !in_array('PHPMailerAutoload', spl_autoload_functions())) {
require 'PHPMailerAutoload.php';
if (version_compare(PHP_VERSION, '5.1.2', '>=')) {
$al = spl_autoload_functions();
if ($al === false or !in_array('PHPMailerAutoload', $al)) {
require 'PHPMailerAutoload.php';
}
}
}

Expand Down

0 comments on commit e1023b6

Please sign in to comment.