From: Roland Häder Date: Wed, 11 Nov 2009 19:35:15 +0000 (+0000) Subject: Another missing variable fixed X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=commitdiff_plain;h=197e6d73c0b4f33b5d3c95f339b5f0c12e40b1b8 Another missing variable fixed --- diff --git a/inc/modules/admin/what-lock_user.php b/inc/modules/admin/what-lock_user.php index c741ae12f5..83455cbe47 100644 --- a/inc/modules/admin/what-lock_user.php +++ b/inc/modules/admin/what-lock_user.php @@ -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 diff --git a/inc/modules/admin/what-unlock_surfbar_urls.php b/inc/modules/admin/what-unlock_surfbar_urls.php index d65eced43d..ca19e3b725 100644 --- a/inc/modules/admin/what-unlock_surfbar_urls.php +++ b/inc/modules/admin/what-unlock_surfbar_urls.php @@ -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! :-)