inc/dns.inc.php
changeset 94 6b4d19ef3de4
parent 82 c255196bc447
child 95 737a213ad90c
--- a/inc/dns.inc.php	Thu Mar 27 15:32:17 2008 +0000
+++ b/inc/dns.inc.php	Thu Mar 27 16:11:46 2008 +0000
@@ -68,14 +68,9 @@
 		$wildcard = false;
 	}
 
-// TODO:	Needs to be checked what this is good for. Since we started insert an array
-//		in functions like edit_record, "name"'s like "sub-fqdn.example.net" became 
-//		"sub-fqdn.example.net.example.net". 
-//	if ($name=="0") {
-//		$name=$name.".".$domain;
-//	} else {
-//		$name = ($name) ? $name.".".$domain : $domain;
-//	}
+	if ($name == "" || $name == "@") {
+		$name = $domain;
+	}
 
 	if (preg_match('!@\.!i', $name))
 	{