Use proper check to verify if index is set in the Request

Fix #12759

Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
This commit is contained in:
Deven Bansod 2016-11-29 08:53:00 +05:30
parent 09f56abed6
commit 1b1d68293b

View File

@ -4355,7 +4355,7 @@ function PMA_addUser(
// Copy the user group while copying a user
$old_usergroup =
$_REQUEST['old_usergroup'] ? $_REQUEST['old_usergroup'] : null;
isset($_REQUEST['old_usergroup']) ? $_REQUEST['old_usergroup'] : null;
PMA_setUserGroup($_REQUEST['username'], $old_usergroup);