[feladat @ 239]
authorrejo
Sun, 06 Apr 2008 18:54:52 +0000
changeset 133 7863d881b8a5
parent 132 155178ad24e4
child 134 a8228f676bf7
[feladat @ 239] Bugfix. Adding a new master zone without using the template caused creation of malformed SOA record.
inc/record.inc.php
--- a/inc/record.inc.php	Sun Apr 06 18:32:32 2008 +0000
+++ b/inc/record.inc.php	Sun Apr 06 18:54:52 2008 +0000
@@ -336,8 +336,8 @@
 					$query = "INSERT INTO records (domain_id, name, content, type, ttl, prio, change_date) VALUES (" 
 							. $db->quote($domain_id) . "," 
 							. $db->quote($domain) . "," 
+							. $db->quote($ns1.' '.$hm.' 1') . ","
 							. $db->quote('SOA').","
-							. $db->quote($ns1.' '.$hm.' 1') . ","
 							. $db->quote($ttl) 
 							. ", 0, "
 							. $db->quote($now).")";