Skip to content

Commit

Permalink
improve php lookup performance
Browse files Browse the repository at this point in the history
  • Loading branch information
Buffele committed Nov 7, 2021
1 parent 8236c76 commit f256e52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/php/MailChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static function isBlacklisted(string $email): bool
$domain = end($parts);

foreach (self::allDomainSuffixes($domain) as $domainSuffix) {
if (array_key_exists($domainSuffix, self::$blacklist)) {
if (isset(self::$blacklist[$domainSuffix])) {
return true;
}
}
Expand Down

0 comments on commit f256e52

Please sign in to comment.