mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 23:37:39 +02:00
Fixed bug #486800 which is probably caused by pruning of posts ... can't see any other reason at present
git-svn-id: file:///svn/phpbb/trunk@1478 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -251,7 +251,7 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
|
|||||||
if( $profiledata['user_posts'] != 0 )
|
if( $profiledata['user_posts'] != 0 )
|
||||||
{
|
{
|
||||||
$total_posts = get_db_stat("postcount");
|
$total_posts = get_db_stat("postcount");
|
||||||
$percentage = ( $total_posts ) ? sprintf("%.2f", ($profiledata['user_posts'] / $total_posts) * 100) : 0;
|
$percentage = ( $total_posts ) ? sprintf("%.2f", max(100, ($profiledata['user_posts'] / $total_posts) * 100)) : 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user