From 8a5e4ab91aa433b277313bc4505f36e2536fc9cf Mon Sep 17 00:00:00 2001 From: Patrick Cool Date: Wed, 15 Nov 2006 01:05:16 +0100 Subject: [PATCH] [svn r9981] replace $_uid with $_user['user_id'] --- main/admin/user_list.php | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/main/admin/user_list.php b/main/admin/user_list.php index 3d556b4052..4d6a16b390 100644 --- a/main/admin/user_list.php +++ b/main/admin/user_list.php @@ -1,6 +1,6 @@ $_uid) // you cannot lock yourself out otherwise you could disable all the accounts including your own => everybody is locked out and nobody can change it anymore. + if ($row['0']<>$_user['user_id']) // you cannot lock yourself out otherwise you could disable all the accounts including your own => everybody is locked out and nobody can change it anymore. { $result = ''.get_lang($action).''; } @@ -381,7 +382,7 @@ else Display :: display_normal_message(stripslashes($_GET['message'])); break; case 'delete_user' : - if ($user_id != $_uid && UserManager :: delete_user($_GET['user_id'])) + if ($user_id != $_user['user_id'] && UserManager :: delete_user($_GET['user_id'])) { Display :: display_normal_message(get_lang('UserDeleted')); } @@ -410,7 +411,7 @@ else $number_of_deleted_users = 0; foreach ($_POST['id'] as $index => $user_id) { - if($user_id != $_uid) + if($user_id != $_user['user_id']) { if(UserManager :: delete_user($user_id)) {