From 0dfa526665b5f6e170af89681981eb4662095a2d Mon Sep 17 00:00:00 2001 From: Graham Eames Date: Fri, 6 Jan 2006 22:38:18 +0000 Subject: Fixing a permissions issue where a user only has local moderator rights. David - please test to make sure it works for you as well NB: There is still an outstanding issue on the queue module to be looked at later git-svn-id: file:///svn/phpbb/trunk@5432 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/mcp/mcp_warn.php | 8 -------- 1 file changed, 8 deletions(-) (limited to 'phpBB/includes/mcp/mcp_warn.php') diff --git a/phpBB/includes/mcp/mcp_warn.php b/phpBB/includes/mcp/mcp_warn.php index 13d3e20e1a..ccb58f33a8 100755 --- a/phpBB/includes/mcp/mcp_warn.php +++ b/phpBB/includes/mcp/mcp_warn.php @@ -342,14 +342,6 @@ function mcp_warn_user_view($id, $mode, $action) $sql_where = ($user_id) ? "user_id = $user_id" : "username = '" . $db->sql_escape($username) . "'"; -/* $sql = 'SELECT * FROM ' . USERS_TABLE . " WHERE $sql_where"; - $result = $db->sql_query($sql); - - if (!$userrow = $db->sql_fetchrow($result)) - { - trigger_error($user->lang['NO_USER']); - } - $db->sql_freeresult($result);*/ $userrow = get_userdata($user_id); $user_id = $userrow['user_id']; -- cgit v1.2.1