mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
git-svn-id: file:///svn/phpbb/trunk@7236 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
c9e6302172
commit
6da803dfe3
1 changed files with 13 additions and 6 deletions
|
@ -76,16 +76,23 @@ class mcp_logs
|
||||||
// Delete entries if requested and able
|
// Delete entries if requested and able
|
||||||
if (($deletemark || $deleteall) && $auth->acl_get('a_clearlogs'))
|
if (($deletemark || $deleteall) && $auth->acl_get('a_clearlogs'))
|
||||||
{
|
{
|
||||||
if ($deletemark && $marked)
|
if ($deletemark)
|
||||||
{
|
{
|
||||||
$sql_in = array();
|
if (!sizeof($marked))
|
||||||
foreach ($marked as $mark)
|
|
||||||
{
|
{
|
||||||
$sql_in[] = $mark;
|
$where_sql = '';
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$sql_in = array();
|
||||||
|
foreach ($marked as $mark)
|
||||||
|
{
|
||||||
|
$sql_in[] = $mark;
|
||||||
|
}
|
||||||
|
|
||||||
$where_sql = ' AND ' . $db->sql_in_set('log_id', $sql_in);
|
$where_sql = ' AND ' . $db->sql_in_set('log_id', $sql_in);
|
||||||
unset($sql_in);
|
unset($sql_in);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($where_sql || $deleteall)
|
if ($where_sql || $deleteall)
|
||||||
|
|
Loading…
Add table
Reference in a new issue