diff options
| author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-11-23 19:01:51 +0000 |
|---|---|---|
| committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-11-23 19:01:51 +0000 |
| commit | 8b7b50cdfbaa1a210dc131fcfee1c3f74b9e3774 (patch) | |
| tree | f1d4c8723fbebb861d6ef925955093c11b6c36f8 /phpBB/profile.php | |
| parent | e0489034fc4aaf2e5b424ee9065651d8c50a73d5 (diff) | |
| download | forums-8b7b50cdfbaa1a210dc131fcfee1c3f74b9e3774.tar forums-8b7b50cdfbaa1a210dc131fcfee1c3f74b9e3774.tar.gz forums-8b7b50cdfbaa1a210dc131fcfee1c3f74b9e3774.tar.bz2 forums-8b7b50cdfbaa1a210dc131fcfee1c3f74b9e3774.tar.xz forums-8b7b50cdfbaa1a210dc131fcfee1c3f74b9e3774.zip | |
More search updates + user posts
git-svn-id: file:///svn/phpbb/trunk@1428 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 140c5d6626..1fa3a24875 100644 --- a/phpBB/profile.php +++ b/phpBB/profile.php @@ -248,7 +248,7 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) ) $posts_per_day = sprintf("%.2f", $profiledata['user_posts'] / $memberdays); // Get the users percentage of total posts - if($profiledata['user_posts'] != 0) + if( $profiledata['user_posts'] != 0 && $total_posts != 0 ) { $total_posts = get_db_stat("postcount"); $percentage = sprintf("%.2f", ($profiledata['user_posts'] / $total_posts) * 100); |
