aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-11-29 12:47:39 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-11-29 12:47:39 +0000
commit9f26525a7666d737349758d8b122ad97ddb6c673 (patch)
treec44e83c5b005e64f4bd99fb3ac4d07fdc157bb78 /phpBB
parent87f818b4ef8cae643e73185c3ded432977553d3d (diff)
downloadforums-9f26525a7666d737349758d8b122ad97ddb6c673.tar
forums-9f26525a7666d737349758d8b122ad97ddb6c673.tar.gz
forums-9f26525a7666d737349758d8b122ad97ddb6c673.tar.bz2
forums-9f26525a7666d737349758d8b122ad97ddb6c673.tar.xz
forums-9f26525a7666d737349758d8b122ad97ddb6c673.zip
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
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/profile.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/profile.php b/phpBB/profile.php
index 261da75ea1..d95dc1f991 100644
--- a/phpBB/profile.php
+++ b/phpBB/profile.php
@@ -251,7 +251,7 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
if( $profiledata['user_posts'] != 0 )
{
$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
{