// Load user's data
if (fetchUserData(getRequestParameter('userid'))) {
// Is a lock reason set?
- if ((isPostRequestParameterSet('lock')) && (getUserData('status') != 'LOCKED')) {
+ if ((isFormSent('lock')) && (getUserData('status') != 'LOCKED')) {
// Ok, lock the account!
if (isExtensionInstalledAndNewer('user', '0.3.5')) {
// Lock with reason
// Prepare message
$message = getMaskedMessage('USER_ACCOUNT_UNLOCKED', getRequestParameter('userid'));
$ACT = true;
- } elseif (isPostRequestParameterSet('del')) {
+ } elseif (isFormSent('del')) {
// Delete the account
$ACT = true;
loadIncludeOnce('inc/modules/admin/what-del_user.php');