mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
fix [ticket/17017]
fix post count bug
This commit is contained in:
parent
400546670a
commit
50cf4892ea
1 changed files with 5 additions and 2 deletions
|
@ -441,12 +441,15 @@ class content_visibility
|
||||||
{
|
{
|
||||||
$post_ids[] = (int) $row['post_id'];
|
$post_ids[] = (int) $row['post_id'];
|
||||||
|
|
||||||
if ($row['post_visibility'] != $visibility)
|
if ($row['post_visibility'] != $visibility )
|
||||||
{
|
{
|
||||||
if ($row['post_postcount'] && !isset($poster_postcounts[(int) $row['poster_id']]))
|
if ($row['post_postcount'] && !isset($poster_postcounts[(int) $row['poster_id']]))
|
||||||
{
|
{
|
||||||
|
if($row['post_visibility'] != 0 || $visibility != ITEM_DELETED ){
|
||||||
$poster_postcounts[(int) $row['poster_id']] = 1;
|
$poster_postcounts[(int) $row['poster_id']] = 1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
else if ($row['post_postcount'])
|
else if ($row['post_postcount'])
|
||||||
{
|
{
|
||||||
$poster_postcounts[(int) $row['poster_id']]++;
|
$poster_postcounts[(int) $row['poster_id']]++;
|
||||||
|
|
Loading…
Add table
Reference in a new issue