1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

Fix #51305 - User need a_clearlog to delete warnings

Authorised by: AcydBurn

git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10145 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Joas Schilling
2009-09-15 09:45:05 +00:00
parent ffbe4e3b82
commit b4c7dbcd66
2 changed files with 8 additions and 18 deletions

View File

@@ -1167,13 +1167,7 @@ class acp_users
$deleteall = request_var('delall', 0);
if ($deletemark && $marked)
{
$sql_in = array();
foreach ($marked as $mark)
{
$sql_in[] = $mark;
}
$where_sql = ' AND ' . $db->sql_in_set('warning_id', $sql_in);
unset($sql_in);
$where_sql = ' AND ' . $db->sql_in_set('warning_id', array_values($marked));
}
if ($where_sql || $deleteall)
@@ -1291,7 +1285,6 @@ class acp_users
$template->assign_vars(array(
'S_WARNINGS' => true,
'S_CLEARLOGS' => $auth->acl_get('a_clearlogs'),
));
break;