aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/ucp.php
diff options
context:
space:
mode:
authorChris Smith <toonarmy@phpbb.com>2009-07-18 10:12:17 +0000
committerChris Smith <toonarmy@phpbb.com>2009-07-18 10:12:17 +0000
commitca627c277869d8b7c81a847eb88e5dff95fdda89 (patch)
treef0890b072e437c04d2355c86cac12a733f930c8b /phpBB/ucp.php
parent0fe2b41cfca76b51eb14cc687f2a978b0f4a4da0 (diff)
downloadforums-ca627c277869d8b7c81a847eb88e5dff95fdda89.tar
forums-ca627c277869d8b7c81a847eb88e5dff95fdda89.tar.gz
forums-ca627c277869d8b7c81a847eb88e5dff95fdda89.tar.bz2
forums-ca627c277869d8b7c81a847eb88e5dff95fdda89.tar.xz
forums-ca627c277869d8b7c81a847eb88e5dff95fdda89.zip
Remove redundant SQL query from ucp.php. #40305
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9778 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/ucp.php')
-rw-r--r--phpBB/ucp.php5
1 files changed, 0 insertions, 5 deletions
diff --git a/phpBB/ucp.php b/phpBB/ucp.php
index 02b96f4bfb..b808049187 100644
--- a/phpBB/ucp.php
+++ b/phpBB/ucp.php
@@ -215,11 +215,6 @@ switch ($mode)
$auth->acl_cache($user->data);
- $sql = 'UPDATE ' . USERS_TABLE . "
- SET user_perm_from = 0
- WHERE user_id = " . $user->data['user_id'];
- $db->sql_query($sql);
-
$sql = 'SELECT username
FROM ' . USERS_TABLE . '
WHERE user_id = ' . $user->data['user_perm_from'];