Changeset 123

Show
Ignore:
Timestamp:
2008-01-08 21:30:19 (1 year ago)
Author:
hannes
Message:

fixing number of posts per day if registered for less than one day in profile

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/classes/misc/Member.php

    r122 r123  
    383383        $today = new DateTime('now', new DateTimeZone('UTC')); 
    384384        $diff = strtotime($today->format('Y-m-d')) - strtotime($this->registration); 
    385         $days = max(1, $diff) / (60 * 60 * 24); 
     385        $days = max(1, $diff / (60 * 60 * 24)); 
    386386        $table->addRow(Array($LANG['Posts'] . ':', $this->posts . ' (' . round($this->posts / $days , 1) . ' ' . $LANG['per_day'] . ')')); 
    387387        $table->addRow(Array($LANG['Stage'] . ':', $this->stage));