[feature/soft-delete] Fix adding posts to *_posts when restoring soft deleted

PHPBB3-9567
This commit is contained in:
Joas Schilling 2012-11-08 22:17:59 +01:00
parent 885e19e58a
commit bb173afe3f

View file

@ -393,7 +393,7 @@ class phpbb_content_visibility
{
$sql_ary['posts_softdeleted'] = ' - ' . $cur_softdeleted_posts;
}
if ($cur_posts + $cur_unapproved_posts)
if ($cur_softdeleted_posts + $cur_unapproved_posts)
{
$sql_ary['posts'] = ' + ' . ($cur_softdeleted_posts + $cur_unapproved_posts);
}