diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-09-25 23:36:11 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-09-25 23:36:11 +0000 |
commit | 09d4abb2ff868366268853b51ec350b6ce30997d (patch) | |
tree | 2768373acf63585dc9a9bd0acff0905867528866 /phpBB/profile.php | |
parent | 0def8048964599f6f821517e164fc69ba4a0fb0d (diff) | |
download | forums-09d4abb2ff868366268853b51ec350b6ce30997d.tar forums-09d4abb2ff868366268853b51ec350b6ce30997d.tar.gz forums-09d4abb2ff868366268853b51ec350b6ce30997d.tar.bz2 forums-09d4abb2ff868366268853b51ec350b6ce30997d.tar.xz forums-09d4abb2ff868366268853b51ec350b6ce30997d.zip |
Damn division by zero, who invented zero anyway, idiots
git-svn-id: file:///svn/phpbb/trunk@1088 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 f8f1d27181..63d78d4dfb 100644 --- a/phpBB/profile.php +++ b/phpBB/profile.php @@ -221,7 +221,7 @@ if(isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode'])) // $regdate = $profiledata['user_regdate']; - $memberdays = round( ( time() - $regdate ) / 86400 ); + $memberdays = max(1, round( ( time() - $regdate ) / 86400 )); $posts_per_day = sprintf("%.2f", $profiledata['user_posts'] / $memberdays); // Get the users percentage of total posts |