diff --git a/lib/SmtpValidatorEmail/ValidatorEmail.php b/lib/SmtpValidatorEmail/ValidatorEmail.php index ad33621..a197dab 100644 --- a/lib/SmtpValidatorEmail/ValidatorEmail.php +++ b/lib/SmtpValidatorEmail/ValidatorEmail.php @@ -77,7 +77,7 @@ public function __construct($emails = array(), $sender = '', $options = array()) * If not, the class checks for a "catch-all" and if it determines the box * has a "catch-all", sets all the emails on that domain as invalid. */ - if (array_key_exists('catchAllIsValid', $options)) { + if (!array_key_exists('catchAllIsValid', $options)) { $options['catchAllIsValid'] = 1; }