mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-04 07:47:34 +02:00
quieter - shouldn't make a difference, but well...
git-svn-id: file:///svn/phpbb/trunk@7648 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -1820,6 +1820,10 @@ function sync($mode, $where_type = '', $where_ids = '', $resync_parents = false,
|
|||||||
{
|
{
|
||||||
$topic_id = (int) $row['topic_id'];
|
$topic_id = (int) $row['topic_id'];
|
||||||
|
|
||||||
|
// Ok, there should be a shadow topic. If there isn't, then there's something wrong with the db.
|
||||||
|
// However, there's not much we can do about it.
|
||||||
|
if (!empty($shadow_topic_data[$topic_id]))
|
||||||
|
{
|
||||||
if ($row['post_id'] == $shadow_topic_data[$topic_id]['topic_first_post_id'])
|
if ($row['post_id'] == $shadow_topic_data[$topic_id]['topic_first_post_id'])
|
||||||
{
|
{
|
||||||
$orig_topic_id = $shadow_topic_data[$topic_id]['topic_id'];
|
$orig_topic_id = $shadow_topic_data[$topic_id]['topic_id'];
|
||||||
@@ -1851,6 +1855,7 @@ function sync($mode, $where_type = '', $where_ids = '', $resync_parents = false,
|
|||||||
$sync_shadow_topics[$orig_topic_id]['topic_last_poster_colour'] = $row['user_colour'];
|
$sync_shadow_topics[$orig_topic_id]['topic_last_poster_colour'] = $row['user_colour'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
$db->sql_freeresult($result);
|
$db->sql_freeresult($result);
|
||||||
|
|
||||||
$shadow_topic_data = array();
|
$shadow_topic_data = array();
|
||||||
|
Reference in New Issue
Block a user