mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-04 07:47:34 +02:00
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:
@@ -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";
|
||||||
|
Reference in New Issue
Block a user