[feladat @ 293]
authorrejo
Fri, 11 Jul 2008 08:59:07 +0000
changeset 185 6baa2f78d3fe
parent 184 b60b88b1ae08
child 186 a3e83a34f267
[feladat @ 293] Added isset() check for commits.
add_user.php
delete_user.php
edit_record.php
--- 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 {