]> git.mxchange.org Git - mailer.git/commitdiff
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 4c341400e1d4c62ada0457b076048899ab2579dc..c741ae12f5237f859e169a552230bb6ce8ea4274 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 {