aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_admin.php
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2007-02-25 14:05:39 +0000
committerDavid M <davidmj@users.sourceforge.net>2007-02-25 14:05:39 +0000
commitbf4b0e9ed4b63d87611d975e311a7f48d73919c8 (patch)
treebe6866c7eb7b124329fde70cacfa2b153baaea85 /phpBB/includes/functions_admin.php
parent704174ccb849b1bde81a89ee2576dbb218ce2c4a (diff)
downloadforums-bf4b0e9ed4b63d87611d975e311a7f48d73919c8.tar
forums-bf4b0e9ed4b63d87611d975e311a7f48d73919c8.tar.gz
forums-bf4b0e9ed4b63d87611d975e311a7f48d73919c8.tar.bz2
forums-bf4b0e9ed4b63d87611d975e311a7f48d73919c8.tar.xz
forums-bf4b0e9ed4b63d87611d975e311a7f48d73919c8.zip
#8332
git-svn-id: file:///svn/phpbb/trunk@7066 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r--phpBB/includes/functions_admin.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php
index b63669e186..074d8456be 100644
--- a/phpBB/includes/functions_admin.php
+++ b/phpBB/includes/functions_admin.php
@@ -516,12 +516,13 @@ function delete_topics($where_type, $where_ids, $auto_sync = true, $post_count_s
{
$where_ids = array($where_ids);
}
- $where_clause = $db->sql_in_set($where_type, $where_ids);
- }
- if (!sizeof($where_ids))
- {
- return array('topics' => 0, 'posts' => 0);
+ if (!sizeof($where_ids))
+ {
+ return array('topics' => 0, 'posts' => 0);
+ }
+
+ $where_clause = $db->sql_in_set($where_type, $where_ids);
}
$return = array(