From b63745fdb3b775d7505f38ed03a8bb39907a825c Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Thu, 12 Apr 2007 16:20:39 +0000 Subject: my take on getting the bugs down... thanks to those also providing (usable) solutions to the problem. ;) Of course also to those reporting generally... git-svn-id: file:///svn/phpbb/trunk@7330 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_admin.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'phpBB/includes/functions_admin.php') 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); -- cgit v1.2.1