Update user_edit.php
This commit is contained in:
parent
84fb6d2aa8
commit
a33fc81a7f
|
|
@ -40,7 +40,7 @@
|
||||||
$user_uuid = check_str($_REQUEST["id"]);
|
$user_uuid = check_str($_REQUEST["id"]);
|
||||||
$action = 'edit';
|
$action = 'edit';
|
||||||
}
|
}
|
||||||
else if (permission_exists('user_add') && $_REQUEST["id"] == '') {
|
elseif (permission_exists('user_add') && !isset($_REQUEST["id"])) {
|
||||||
$user_uuid = uuid();
|
$user_uuid = uuid();
|
||||||
$action = 'add';
|
$action = 'add';
|
||||||
}
|
}
|
||||||
|
|
@ -198,7 +198,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
//save the data
|
//save the data
|
||||||
if (strlen($msg) == 0) {
|
if (strlen($msg) == 0 && count($_POST) > 0) {
|
||||||
//set initial array indexes
|
//set initial array indexes
|
||||||
$i = $n = $x = $c = 0;
|
$i = $n = $x = $c = 0;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue