From a33fc81a7fafacfcf4cfc83afe33969d33f70488 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 9 Nov 2018 20:05:32 -0700 Subject: [PATCH] Update user_edit.php --- core/users/user_edit.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/users/user_edit.php b/core/users/user_edit.php index a2aa7caff9..7ca21b7235 100644 --- a/core/users/user_edit.php +++ b/core/users/user_edit.php @@ -40,7 +40,7 @@ $user_uuid = check_str($_REQUEST["id"]); $action = 'edit'; } - else if (permission_exists('user_add') && $_REQUEST["id"] == '') { + elseif (permission_exists('user_add') && !isset($_REQUEST["id"])) { $user_uuid = uuid(); $action = 'add'; } @@ -198,7 +198,7 @@ } //save the data - if (strlen($msg) == 0) { + if (strlen($msg) == 0 && count($_POST) > 0) { //set initial array indexes $i = $n = $x = $c = 0;