]> git.mxchange.org Git - mailer.git/commitdiff
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 c741ae12f5237f859e169a552230bb6ce8ea4274..83455cbe47d8ce37bf3461452968d82862710a13 100644 (file)
@@ -52,7 +52,7 @@ if (isGetRequestElementSet('userid')) {
        // Load user's data
        if (fetchUserData(getRequestElement('userid'))) {
                // Is a lock reason set?
        // 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
                        // 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;
                        // 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
                        // Ok, unlock the account!
                        if (getExtensionVersion('user') >= '0.3.5') {
                                // Reset lock reason as well
index d65eced43d990cdccf616f746df17754e6905d06..ca19e3b725b5d193753edcffd62b2a05f097766c 100644 (file)
@@ -45,7 +45,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 addMenuDescription('admin', __FILE__);
 
 // Is the form sent?
 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! :-)
        // Unlock selected URLs
        if (SURFBAR_ADMIN_UNLOCK_URL_IDS(postRequestElement('id'))) {
                // Unlock done! :-)