Commit 2f27898e authored by Vitaly Lipatov's avatar Vitaly Lipatov

checkdnsrr: set default arg

parent 67170699
...@@ -116,7 +116,8 @@ if( !validate_email($email, $matches) ) { ...@@ -116,7 +116,8 @@ if( !validate_email($email, $matches) ) {
$response['error'] = 'typed_domain'; $response['error'] = 'typed_domain';
} }
if(checkdnsrr($matches[2]) === false) { // TODO: проверять отдельно на существование домена
if(checkdnsrr($matches[2], "MX") === false) {
$response['status'] = false; $response['status'] = false;
$response['error'] = 'dns_records_not_found'; $response['error'] = 'dns_records_not_found';
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment