Another missing variable fixed
authorRoland Häder <roland@mxchange.org>
Wed, 11 Nov 2009 19:35:15 +0000 (19:35 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 11 Nov 2009 19:35:15 +0000 (19:35 +0000)
inc/modules/admin/what-lock_user.php
inc/modules/admin/what-unlock_surfbar_urls.php

index c741ae1..83455cb 100644 (file)
@@ -52,7 +52,7 @@ if (isGetRequestElementSet('userid')) {
        // Load user's data
        if (fetchUserData(getRequestElement('userid'))) {
                // Is a lock reason set?
-               if ((isPostRequestElementSet('lock')) && ($status != 'LOCKED')) {
+               if ((isPostRequestElementSet('lock')) && (getUserData('status') != 'LOCKED')) {
                        // Ok, lock the account!
                        if (getExtensionVersion('user') >= '0.3.5') {
                                // Lock with reason
@@ -76,7 +76,7 @@ if (isGetRequestElementSet('userid')) {
                        // Prepare message
                        $message = sprintf(getMessage('USER_ACCOUNT_LOCKED'), getRequestElement('userid'));
                        $ACT = true;
-               } elseif ((isPostRequestElementSet(('unlock'))) && ($status == 'LOCKED')) {
+               } elseif ((isPostRequestElementSet('unlock')) && (getUserData('status') == 'LOCKED')) {
                        // Ok, unlock the account!
                        if (getExtensionVersion('user') >= '0.3.5') {
                                // Reset lock reason as well
index d65eced..ca19e3b 100644 (file)
@@ -45,7 +45,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 addMenuDescription('admin', __FILE__);
 
 // Is the form sent?
-if ((isPostRequestElementSet(('unlock'))) && (is_array(postRequestElement('id'))) && (count(postRequestElement('id')) > 0)) {
+if ((isPostRequestElementSet('unlock')) && (is_array(postRequestElement('id'))) && (count(postRequestElement('id')) > 0)) {
        // Unlock selected URLs
        if (SURFBAR_ADMIN_UNLOCK_URL_IDS(postRequestElement('id'))) {
                // Unlock done! :-)