]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-lock_user.php
Encapsulation and fixes:
[mailer.git] / inc / modules / admin / what-lock_user.php
index 5656c7b34a3f6201a9e17dfe8e992f8e43aa8b40..1f334602c0f38dfbbfb66387d57802cd53f2fe9a 100644 (file)
@@ -53,7 +53,7 @@ if (isGetRequestParameterSet('userid')) {
        // 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
@@ -112,7 +112,7 @@ LIMIT 1",
                        // 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');