diff options
author | David M <davidmj@users.sourceforge.net> | 2007-03-28 01:01:59 +0000 |
---|---|---|
committer | David M <davidmj@users.sourceforge.net> | 2007-03-28 01:01:59 +0000 |
commit | 6da803dfe3f551031ec445ee75f8a8067abe37a4 (patch) | |
tree | 9cfffc7ba5661e04d21670106156a53ce5f89c24 /phpBB/includes/mcp/mcp_logs.php | |
parent | c9e6302172102ec7eba7cdc439b63009491238df (diff) | |
download | forums-6da803dfe3f551031ec445ee75f8a8067abe37a4.tar forums-6da803dfe3f551031ec445ee75f8a8067abe37a4.tar.gz forums-6da803dfe3f551031ec445ee75f8a8067abe37a4.tar.bz2 forums-6da803dfe3f551031ec445ee75f8a8067abe37a4.tar.xz forums-6da803dfe3f551031ec445ee75f8a8067abe37a4.zip |
#5286
git-svn-id: file:///svn/phpbb/trunk@7236 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/mcp/mcp_logs.php')
-rwxr-xr-x | phpBB/includes/mcp/mcp_logs.php | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/phpBB/includes/mcp/mcp_logs.php b/phpBB/includes/mcp/mcp_logs.php index 44acc10174..a7a9e48c8f 100755 --- a/phpBB/includes/mcp/mcp_logs.php +++ b/phpBB/includes/mcp/mcp_logs.php @@ -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) |