Fix for missing variable
authorRoland Häder <roland@mxchange.org>
Wed, 11 Nov 2009 19:22:21 +0000 (19:22 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 11 Nov 2009 19:22:21 +0000 (19:22 +0000)
inc/modules/admin/what-lock_user.php

index 4c34140..c741ae1 100644 (file)
@@ -125,10 +125,11 @@ LIMIT 1",
                                $content['email']   = generateEmailLink(getUserData('email'), 'user_data');
                                $content['surname'] = getUserData('surname');
                                $content['family']  = getUserData('family');
+                               $content['status']  = getUserData('status');
                                $content['userid']  = bigintval(getRequestElement('userid'));
 
                                // Realy want to lock?
-                               switch ($status) {
+                               switch ($content['status']) {
                                        case 'CONFIRMED': // Yes, lock him down... ;-)
                                                $content['ok']     = 'lock';
                                                $content['header'] = sprintf(getMessage('ADMIN_HEADER_LOCK_ACCOUNT'), $content['userid']);
@@ -148,6 +149,9 @@ LIMIT 1",
                                                break;
                                }
 
+                               // Translate user status
+                               $content['status'] = translateUserStatus($content['status']);
+
                                // Output form
                                loadTemplate('admin_lock_user', false, $content);
                        } else {