Skip to content

Commit 32d9336

Browse files
committed
Fix incorrect for if 'catchAllIsValid' is set
Check for the option catchAllIsValid was always overriding the passed in value
1 parent 860c028 commit 32d9336

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SmtpValidatorEmail/ValidatorEmail.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function __construct($emails = array(), $sender = '', $options = array())
7777
* If not, the class checks for a "catch-all" and if it determines the box
7878
* has a "catch-all", sets all the emails on that domain as invalid.
7979
*/
80-
if (array_key_exists('catchAllIsValid', $options)) {
80+
if (!array_key_exists('catchAllIsValid', $options)) {
8181
$options['catchAllIsValid'] = 1;
8282
}
8383

0 commit comments

Comments
 (0)