email check failed, translate wall_item template

This commit is contained in:
Friendika 2011-01-03 13:26:43 -08:00
parent 36b241c02b
commit a51a1007a3
6 changed files with 8 additions and 5 deletions

View file

@ -1497,7 +1497,7 @@ function validate_email($addr) {
return false;
$h = substr($addr,strpos($addr,'@') + 1);
if(($h) && (dns_get_record($h['host'], DNS_A + DNS_CNAME + DNS_PTR + DNS_MX))) {
if(($h) && (dns_get_record($h, DNS_A + DNS_CNAME + DNS_PTR + DNS_MX))) {
return true;
}
return false;