diff -r effde559e0e9 -r 0c0aa144356a add_zone_slave.php --- a/add_zone_slave.php Mon Mar 03 20:32:33 2008 +0000 +++ b/add_zone_slave.php Mon Mar 10 19:15:59 2008 +0000 @@ -27,13 +27,13 @@ } -if ($_POST["submit"]) +if (isset($_POST["submit"])) { $domain = trim($_POST["domain"]); $owner = $_POST["owner"]; $slave_master = $_POST["slave_master"]; $dom_type = "SLAVE"; - if (!$error) + if (!isset($error)) { if (!is_valid_domain($domain)) { @@ -49,7 +49,7 @@ } else { - if(add_domain($domain, $owner, $webip, $mailip, $empty, $dom_type, $slave_master)) + if(add_domain($domain, $owner, '', '', 1, $dom_type, $slave_master)) { $success = _('Successfully added slave zone.'); } @@ -59,11 +59,11 @@ include_once("inc/header.inc.php"); - if ($error != "") + if ((isset($error)) && ($error != "")) { ?>