From 09d4abb2ff868366268853b51ec350b6ce30997d Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Tue, 25 Sep 2001 23:36:11 +0000 Subject: Damn division by zero, who invented zero anyway, idiots git-svn-id: file:///svn/phpbb/trunk@1088 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/profile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpBB/profile.php') 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 -- cgit v1.2.1