aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/mcp/mcp_notes.php
diff options
context:
space:
mode:
authorGraham Eames <grahamje@users.sourceforge.net>2006-01-14 17:00:15 +0000
committerGraham Eames <grahamje@users.sourceforge.net>2006-01-14 17:00:15 +0000
commit887aa75aa26ac8d9e468967c34ef393f82d4697d (patch)
tree363b5fd2546569d55cad82cf8df7a630643f866c /phpBB/includes/mcp/mcp_notes.php
parent287992ea2929efad8a593fe48b94f96cf2cfedf5 (diff)
downloadforums-887aa75aa26ac8d9e468967c34ef393f82d4697d.tar
forums-887aa75aa26ac8d9e468967c34ef393f82d4697d.tar.gz
forums-887aa75aa26ac8d9e468967c34ef393f82d4697d.tar.bz2
forums-887aa75aa26ac8d9e468967c34ef393f82d4697d.tar.xz
forums-887aa75aa26ac8d9e468967c34ef393f82d4697d.zip
A couple of minor bug fixes for note deletion
git-svn-id: file:///svn/phpbb/trunk@5455 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/mcp/mcp_notes.php')
-rwxr-xr-xphpBB/includes/mcp/mcp_notes.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/mcp/mcp_notes.php b/phpBB/includes/mcp/mcp_notes.php
index 0be85c67ee..9609dd3663 100755
--- a/phpBB/includes/mcp/mcp_notes.php
+++ b/phpBB/includes/mcp/mcp_notes.php
@@ -118,7 +118,7 @@ function mcp_notes_user_view($id, $mode, $action)
// Handle any actions
if (($deletemark || $deleteall) && $auth->acl_get('a_clearlogs'))
{
- $where_sql = '';
+ $where_sql = " AND reportee_id = $user_id";
if ($deletemark && $marked)
{
$sql_in = array();
@@ -135,7 +135,7 @@ function mcp_notes_user_view($id, $mode, $action)
$where_sql";
$db->sql_query($sql);
- add_log('admin', 'LOG_USERS_CLEAR');
+ add_log('admin', 'LOG_CLEAR_USER', $userrow['username']);
$msg = ($deletemark) ? 'MARKED_DELETED' : 'ALL_DELETED';
$redirect = "mcp.$phpEx$SID&amp;i=$id&amp;mode=$mode&amp;u=$user_id";