Skip to content

Commit 0f71822

Browse files
eusonlitoSynchro
authored andcommitted
Use $exception default value if not set on construct. (PHPMailer#682)
1 parent 177839e commit 0f71822

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

class.phpmailer.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -635,9 +635,11 @@ class PHPMailer
635635
* Constructor.
636636
* @param boolean $exceptions Should we throw external exceptions?
637637
*/
638-
public function __construct($exceptions = false)
638+
public function __construct($exceptions = null)
639639
{
640-
$this->exceptions = (boolean)$exceptions;
640+
if ($exceptions !== null) {
641+
$this->exceptions = (boolean)$exceptions;
642+
}
641643
}
642644

643645
/**

0 commit comments

Comments
 (0)