fixed strict check

This commit is contained in:
Christian Raue
2014-11-04 09:31:07 +01:00
parent 05367768d6
commit 2ec7babda6
@@ -84,7 +84,7 @@ class EmailValidator
return false;
}
$dns = false;
$dns = true;
if ($checkDNS) {
$dns = $this->checkDNS();
}
@@ -95,12 +95,7 @@ class EmailValidator
return false;
}
return ($strict) ? $this->checkStrict($dns) : true;
}
private function checkStrict($dns)
{
return !($this->hasWarnings() && !$dns);
return !$strict || (!$this->hasWarnings() && $dns);
}
/**