aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Wigginton <terrafrost@phpbb.com>2009-01-27 20:08:21 +0000
committerJim Wigginton <terrafrost@phpbb.com>2009-01-27 20:08:21 +0000
commit5f77d4855dac894689f3468813e17f7d1a2bf45f (patch)
tree99fbbf23642d9e57e7792fef203c1d8e2cd404a9
parent06a47f8d8bfec14d63c84ca812fc3cdefa5a7874 (diff)
downloadforums-5f77d4855dac894689f3468813e17f7d1a2bf45f.tar
forums-5f77d4855dac894689f3468813e17f7d1a2bf45f.tar.gz
forums-5f77d4855dac894689f3468813e17f7d1a2bf45f.tar.bz2
forums-5f77d4855dac894689f3468813e17f7d1a2bf45f.tar.xz
forums-5f77d4855dac894689f3468813e17f7d1a2bf45f.zip
Fixed bug #40275 - The sql query in acp_users.php lacks a condition
Authorised by: acydburn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9310 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/docs/CHANGELOG.html1
-rw-r--r--phpBB/includes/acp/acp_users.php1
2 files changed, 2 insertions, 0 deletions
diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html
index 312ef8369e..91261ba90d 100644
--- a/phpBB/docs/CHANGELOG.html
+++ b/phpBB/docs/CHANGELOG.html
@@ -92,6 +92,7 @@
<li>[Fix] Missing end " in quote bb tag deletes text (Bug #40565 - Patch by TerraFrost)</li>
<li>[Fix] Friend/foe system displays posts made by foes while composing (Bug #40325 - Patch by TerraFrost and Highway of Life)</li>
<li>[Fix] Check forum_image whether it exists (Bug #39005 - Patch by TerraFrost)</li>
+ <li>[Fix] The sql query in acp_users.php lacks a condition (Bug #40275 - Patch by grimskies)</li>
<li>[Fix] Added missing read permission information for some phpbb_chmod() calls</li>
<li>[Fix] Correctly display future dates (Bug #38755)</li>
<li>[Fix] Fix guest/bot session problems with apache authentication plugin (Bug #41085)</li>
diff --git a/phpBB/includes/acp/acp_users.php b/phpBB/includes/acp/acp_users.php
index 05a087f4c3..dd2b838f83 100644
--- a/phpBB/includes/acp/acp_users.php
+++ b/phpBB/includes/acp/acp_users.php
@@ -972,6 +972,7 @@ class acp_users
{
$sql = 'DELETE FROM ' . LOG_TABLE . '
WHERE log_type = ' . LOG_USERS . "
+ AND reportee_id = $user_id
$where_sql";
$db->sql_query($sql);