[feladat @ 194]
authorrejo
Thu, 27 Mar 2008 16:11:46 +0000
changeset 94 6b4d19ef3de4
parent 93 92901b76946a
child 95 737a213ad90c
[feladat @ 194] Bugfix. Unable to add record without specifying a name (which is common for @ records).
inc/dns.inc.php
--- 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))
 	{