diff -r 090be08858db -r 9c10fd623368 delete_record.php --- a/delete_record.php Thu Mar 27 17:44:49 2008 +0000 +++ b/delete_record.php Thu Mar 27 17:55:33 2008 +0000 @@ -27,9 +27,8 @@ $record_id = $_GET['id']; } - $confirm = "-1"; -if ((isset($_GET['confirm']) && v_num($_GET['confirm']) +if (isset($_GET['confirm']) && v_num($_GET['confirm'])) { $confirm = $_GET['confirm']; } @@ -40,6 +39,8 @@ $user_is_zone_owner = verify_user_is_owner_zoneid($_GET["domain"]); if ($record_id == "-1" ) { + error(ERR_INV_INPUT); +} else { if ($confirm == '1') { if ( delete_record($record_id) ) { success(SUC_RECORD_DEL); @@ -79,7 +80,5 @@ echo " \n"; } } -} else { - error(ERR_INV_INPUT); } include_once("inc/footer.inc.php");