aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/admin
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-11-29 11:25:04 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-11-29 11:25:04 +0000
commit1935343a15d8722439446118346784e6a41d287a (patch)
tree1980381a735c34904415b3d634bb577fc989fe03 /phpBB/admin
parent2b6be29f24fc3b16fa0e7d9cde93b2cc4261115b (diff)
downloadforums-1935343a15d8722439446118346784e6a41d287a.tar
forums-1935343a15d8722439446118346784e6a41d287a.tar.gz
forums-1935343a15d8722439446118346784e6a41d287a.tar.bz2
forums-1935343a15d8722439446118346784e6a41d287a.tar.xz
forums-1935343a15d8722439446118346784e6a41d287a.zip
Fixed bug #486207
git-svn-id: file:///svn/phpbb/trunk@1474 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/admin')
-rw-r--r--phpBB/admin/admin_users.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/phpBB/admin/admin_users.php b/phpBB/admin/admin_users.php
index 4134a0398d..fc2744b4fb 100644
--- a/phpBB/admin/admin_users.php
+++ b/phpBB/admin/admin_users.php
@@ -335,10 +335,18 @@ if( $mode == "edit" || $mode == "save" && ( isset($HTTP_POST_VARS['username']) |
{
$user_id = ( isset($HTTP_POST_VARS[POST_USERS_URL]) ) ? $HTTP_POST_VARS[POST_USERS_URL] : $HTTP_GET_VARS[POST_USERS_URL];
$this_userdata = get_userdata_from_id($user_id);
+ if( !$this_userdata )
+ {
+ message_die(GENERAL_MESSAGE, $lang['No_user_id_specified']);
+ }
}
else
{
$this_userdata = get_userdata($HTTP_POST_VARS['username']);
+ if( !$this_userdata )
+ {
+ message_die(GENERAL_MESSAGE, $lang['No_user_id_specified']);
+ }
}
//
@@ -551,8 +559,6 @@ else
//
// Default user selection box
//
- // This should be altered on the final system
- //
$sql = "SELECT user_id, username
FROM " . USERS_TABLE . "
WHERE user_id <> " . ANONYMOUS ."