[feladat @ 293]
Added isset() check for commits.
--- a/add_user.php Fri Jul 11 08:02:01 2008 +0000
+++ b/add_user.php Fri Jul 11 08:59:07 2008 +0000
@@ -25,7 +25,7 @@
if (!verify_permission('user_add_new')) {
error(ERR_PERM_ADD_USER);
} else {
- if($_POST["commit"]) {
+ if(isset($_POST["commit"])) {
add_new_user($_POST);
success(SUC_USER_ADD);
}
--- a/delete_user.php Fri Jul 11 08:02:01 2008 +0000
+++ b/delete_user.php Fri Jul 11 08:59:07 2008 +0000
@@ -33,7 +33,7 @@
$uid = $_GET['id'];
}
-if ($_POST['commit']) {
+if (isset($_POST['commit'])) {
if (delete_user($uid,$_POST['zone'])) {
success(SUC_USER_DEL);
}
--- a/edit_record.php Fri Jul 11 08:02:01 2008 +0000
+++ b/edit_record.php Fri Jul 11 08:59:07 2008 +0000
@@ -40,7 +40,7 @@
$zone_type = get_domain_type($zid);
$zone_name = get_zone_name_from_id($zid);
-if ($_POST["commit"]) {
+if (isset($_POST["commit"])) {
if ( $zone_type == "SLAVE" || $perm_content_edit == "none" || $perm_content_edit == "own" && $user_is_zone_owner == "0" ) {
error(ERR_PERM_EDIT_RECORD);
} else {