Skip to content

Commit

Permalink
修复屏蔽用户导致索引不连续,导致查看UBB源码功能异常的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
SwimmingTiger committed Jul 14, 2022
1 parent 7bc1894 commit 8753be4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/page/addin/chat.php
Expand Up @@ -118,6 +118,9 @@
}
}

// 修复屏蔽用户导致的索引不连续
$list = array_values($list);

$tpl->assign('list', $list);
$tpl->assign('count', $chatCount);
$tpl->assign('p', $p);
Expand Down
4 changes: 4 additions & 0 deletions src/page/bbs/topic.php
Expand Up @@ -99,6 +99,10 @@
$v['content'] = UbbParser::createPostNeedReviewNotice($USER, $uinfo, $v['id'], $v['content'], $vTid, $v['review'], $v['review_log'], true);
}
}

// 修复屏蔽用户导致的索引不连续
$tContents = array_values($tContents);

$tpl->assign('tMeta', $tMeta);
$tpl->assign('tContents', $tContents);
$tpl->assign('blockedReply', $blockedReply);
Expand Down

0 comments on commit 8753be4

Please sign in to comment.