mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 20:38:52 +00:00
- small issue
git-svn-id: file:///svn/phpbb/trunk@7103 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
79d1599135
commit
616dc8adf5
1 changed files with 11 additions and 2 deletions
|
@ -903,7 +903,7 @@ function topic_review($topic_id, $forum_id, $mode = 'topic_review', $cur_post_id
|
||||||
$rowset = array();
|
$rowset = array();
|
||||||
while ($row = $db->sql_fetchrow($result))
|
while ($row = $db->sql_fetchrow($result))
|
||||||
{
|
{
|
||||||
$rowset[] = $row;
|
$rowset[$row['post_id']] = $row;
|
||||||
$bbcode_bitfield = $bbcode_bitfield | base64_decode($row['bbcode_bitfield']);
|
$bbcode_bitfield = $bbcode_bitfield | base64_decode($row['bbcode_bitfield']);
|
||||||
}
|
}
|
||||||
$db->sql_freeresult($result);
|
$db->sql_freeresult($result);
|
||||||
|
@ -915,8 +915,17 @@ function topic_review($topic_id, $forum_id, $mode = 'topic_review', $cur_post_id
|
||||||
$bbcode = new bbcode(base64_encode($bbcode_bitfield));
|
$bbcode = new bbcode(base64_encode($bbcode_bitfield));
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($rowset as $i => $row)
|
for ($i = 0, $end = sizeof($post_list); $i < $end; ++$i)
|
||||||
{
|
{
|
||||||
|
// A non-existing rowset only happens if there was no user present for the entered poster_id
|
||||||
|
// This could be a broken posts table.
|
||||||
|
if (!isset($rowset[$post_list[$i]]))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
$row =& $rowset[$post_list[$i]];
|
||||||
|
|
||||||
$poster_id = $row['user_id'];
|
$poster_id = $row['user_id'];
|
||||||
$post_subject = $row['post_subject'];
|
$post_subject = $row['post_subject'];
|
||||||
$message = censor_text($row['post_text']);
|
$message = censor_text($row['post_text']);
|
||||||
|
|
Loading…
Add table
Reference in a new issue