aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/mcp/mcp_logs.php
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2007-03-28 01:01:59 +0000
committerDavid M <davidmj@users.sourceforge.net>2007-03-28 01:01:59 +0000
commit6da803dfe3f551031ec445ee75f8a8067abe37a4 (patch)
tree9cfffc7ba5661e04d21670106156a53ce5f89c24 /phpBB/includes/mcp/mcp_logs.php
parentc9e6302172102ec7eba7cdc439b63009491238df (diff)
downloadforums-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-xphpBB/includes/mcp/mcp_logs.php21
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)