1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-15 13:34:41 +01:00
git-svn-id: file:///svn/phpbb/trunk@7236 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M 2007-03-28 01:01:59 +00:00
parent c9e6302172
commit 6da803dfe3

View File

@ -76,16 +76,23 @@ class mcp_logs
// Delete entries if requested and able
if (($deletemark || $deleteall) && $auth->acl_get('a_clearlogs'))
{
if ($deletemark && $marked)
if ($deletemark)
{
$sql_in = array();
foreach ($marked as $mark)
if (!sizeof($marked))
{
$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);
unset($sql_in);
$where_sql = ' AND ' . $db->sql_in_set('log_id', $sql_in);
unset($sql_in);
}
}
if ($where_sql || $deleteall)