mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
This checkin is sponsored by AOL
git-svn-id: file:///svn/phpbb/trunk@4144 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
5287a27653
commit
0c14f1d469
1 changed files with 7 additions and 5 deletions
|
@ -663,11 +663,13 @@ function sync($mode, $where_type = '', $where_ids = '', $resync_parents = FALSE,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql = 'UPDATE ' . TOPICS_TABLE . '
|
if (count($topic_ids))
|
||||||
SET topic_reported = 1 - topic_reported
|
{
|
||||||
WHERE topic_id IN (' . implode(', ', $topic_ids) . ')';
|
$sql = 'UPDATE ' . TOPICS_TABLE . '
|
||||||
$db->sql_query($sql);
|
SET topic_reported = 1 - topic_reported
|
||||||
unset($topic_ids);
|
WHERE topic_id IN (' . implode(', ', $topic_ids) . ')';
|
||||||
|
$db->sql_query($sql);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$db->sql_freeresult($result);
|
$db->sql_freeresult($result);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue