aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_posting.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r--phpBB/includes/functions_posting.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index 282e74fa7c..cf38f07a15 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -115,11 +115,16 @@ function update_post_information($type, $ids, $return_update_sql = false)
{
global $db;
+ if (empty($ids))
+ {
+ return;
+ }
if (!is_array($ids))
{
$ids = array($ids);
}
+
$update_sql = $empty_forums = $not_empty_forums = array();
if ($type != 'topic')