A couple of minor bug fixes for note deletion

git-svn-id: file:///svn/phpbb/trunk@5455 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Graham Eames 2006-01-14 17:00:15 +00:00
parent 287992ea29
commit 887aa75aa2

View file

@ -118,7 +118,7 @@ function mcp_notes_user_view($id, $mode, $action)
// Handle any actions // Handle any actions
if (($deletemark || $deleteall) && $auth->acl_get('a_clearlogs')) if (($deletemark || $deleteall) && $auth->acl_get('a_clearlogs'))
{ {
$where_sql = ''; $where_sql = " AND reportee_id = $user_id";
if ($deletemark && $marked) if ($deletemark && $marked)
{ {
$sql_in = array(); $sql_in = array();
@ -135,7 +135,7 @@ function mcp_notes_user_view($id, $mode, $action)
$where_sql"; $where_sql";
$db->sql_query($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'; $msg = ($deletemark) ? 'MARKED_DELETED' : 'ALL_DELETED';
$redirect = "mcp.$phpEx$SID&i=$id&mode=$mode&u=$user_id"; $redirect = "mcp.$phpEx$SID&i=$id&mode=$mode&u=$user_id";