aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_admin.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r--phpBB/includes/functions_admin.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php
index 7437255f2f..07d0a5d4c2 100644
--- a/phpBB/includes/functions_admin.php
+++ b/phpBB/includes/functions_admin.php
@@ -1352,13 +1352,13 @@ function sync($mode, $where_type = '', $where_ids = '', $resync_parents = false,
$post_ids = array();
while ($row = $db->sql_fetchrow($result))
{
- if (!isset($post_attachment[$row['post_id']]))
+ if (!isset($post_attachment[$row['post_msg_id']]))
{
- $post_ids[] = $row['post_id'];
+ $post_ids[] = $row['post_msg_id'];
}
else
{
- unset($post_attachment[$row['post_id']]);
+ unset($post_attachment[$row['post_msg_id']]);
}
}
$db->sql_freeresult($result);