diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-11-29 21:48:08 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-11-29 21:48:08 +0000 |
commit | 45ee7c56f3e92eac8000642d4cb7aeaf8b5b13df (patch) | |
tree | c375c9b749a68cb217c53f137866b25ccb73916b /phpBB/profile.php | |
parent | 2121f61670e9464e448d39b2fa2f0436b118e45f (diff) | |
download | forums-45ee7c56f3e92eac8000642d4cb7aeaf8b5b13df.tar forums-45ee7c56f3e92eac8000642d4cb7aeaf8b5b13df.tar.gz forums-45ee7c56f3e92eac8000642d4cb7aeaf8b5b13df.tar.bz2 forums-45ee7c56f3e92eac8000642d4cb7aeaf8b5b13df.tar.xz forums-45ee7c56f3e92eac8000642d4cb7aeaf8b5b13df.zip |
Fix bugs #487201 & #487182
git-svn-id: file:///svn/phpbb/trunk@1486 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/profile.php')
-rw-r--r-- | phpBB/profile.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/profile.php b/phpBB/profile.php index d95dc1f991..58fe28e233 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", max(100, ($profiledata['user_posts'] / $total_posts) * 100)) : 0; + $percentage = ( $total_posts ) ? sprintf("%.2f", min(100, ($profiledata['user_posts'] / $total_posts) * 100)) : 0; } else { |