From 887aa75aa26ac8d9e468967c34ef393f82d4697d Mon Sep 17 00:00:00 2001 From: Graham Eames Date: Sat, 14 Jan 2006 17:00:15 +0000 Subject: A couple of minor bug fixes for note deletion git-svn-id: file:///svn/phpbb/trunk@5455 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/mcp/mcp_notes.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'phpBB/includes/mcp/mcp_notes.php') 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&i=$id&mode=$mode&u=$user_id"; -- cgit v1.2.1