1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-21 17:11:53 +02:00

Damn division by zero, who invented zero anyway, idiots

git-svn-id: file:///svn/phpbb/trunk@1088 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen
2001-09-25 23:36:11 +00:00
parent 0def804896
commit 09d4abb2ff

View File

@@ -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