mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
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
This commit is contained in:
parent
0fe2b41cfc
commit
ca627c2778
2 changed files with 1 additions and 5 deletions
|
@ -161,6 +161,7 @@
|
||||||
<li>[Fix] Hide profile-icon from viewtopic-page if user has no permissions (subsilver2 only) (Bug #37635 - Patch by leviatan21)</li>
|
<li>[Fix] Hide profile-icon from viewtopic-page if user has no permissions (subsilver2 only) (Bug #37635 - Patch by leviatan21)</li>
|
||||||
<li>[Fix] Correct escaping/unescaping in the LDAP authentication plugin. (Bug #48175)</li>
|
<li>[Fix] Correct escaping/unescaping in the LDAP authentication plugin. (Bug #48175)</li>
|
||||||
<li>[Fix] Add hard limit for smilies.</li>
|
<li>[Fix] Add hard limit for smilies.</li>
|
||||||
|
<li>[Fix] Remove redundant SQL query from ucp.php. (Bug #40305)</li>
|
||||||
<li>[Change] Change the data format of the default file ACM to be more secure from tampering and have better performance.</li>
|
<li>[Change] Change the data format of the default file ACM to be more secure from tampering and have better performance.</li>
|
||||||
<li>[Change] Add index on log_time to the log table to prevent slowdown on boards with many log entries. (Bug #44665 - Patch by bantu)</li>
|
<li>[Change] Add index on log_time to the log table to prevent slowdown on boards with many log entries. (Bug #44665 - Patch by bantu)</li>
|
||||||
<li>[Change] Template engine now permits to a limited extent variable includes.</li>
|
<li>[Change] Template engine now permits to a limited extent variable includes.</li>
|
||||||
|
|
|
@ -215,11 +215,6 @@ switch ($mode)
|
||||||
|
|
||||||
$auth->acl_cache($user->data);
|
$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
|
$sql = 'SELECT username
|
||||||
FROM ' . USERS_TABLE . '
|
FROM ' . USERS_TABLE . '
|
||||||
WHERE user_id = ' . $user->data['user_perm_from'];
|
WHERE user_id = ' . $user->data['user_perm_from'];
|
||||||
|
|
Loading…
Add table
Reference in a new issue