mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-13 14:58:52 +00: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:
parent
0def804896
commit
09d4abb2ff
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue