// 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
// 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
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! :-)