# HG changeset patch # User rejo # Date 1206523872 0 # Node ID 654262e698e29fcbddf906000e11d50e1fc0b80d # Parent 0205771bf84c4703968773072929855bbc82dfd5 [feladat @ 187] Bugfix. Corrected field order of insert of new zones. diff -r 0205771bf84c -r 654262e698e2 inc/record.inc.php --- a/inc/record.inc.php Wed Mar 26 09:21:53 2008 +0000 +++ b/inc/record.inc.php Wed Mar 26 09:31:12 2008 +0000 @@ -337,11 +337,12 @@ $query = "INSERT INTO records VALUES (''," . $db->quote($domain_id) . "," . $db->quote($domain) . "," - . $db->quote($ns1.' '.$hm.' 1') - . ",'SOA'," + . "'SOA'," + . $db->quote($ns1.' '.$hm.' 1') . "," . $db->quote($ttl) . ", 0, " . $db->quote($now).")"; + echo "
" . $query . ""; $response = $db->query($query); if (PEAR::isError($response)) { error($response->getMessage()); return false; } } elseif ($domain_id) { @@ -363,11 +364,12 @@ $query = "INSERT INTO records VALUES (''," . $db->quote($domain_id) . "," . $db->quote($name) . "," + . $db->quote($type) . "," . $db->quote($content) . "," - . $db->quote($type) . "," . $db->quote($ttl) . "," . $db->quote($prio) . "," . $db->quote($now) . ")"; + echo "
" . $query . ""; $response = $db->query($query); if (PEAR::isError($response)) { error($response->getMessage()); return false; } }