Changeset 123
- Timestamp:
- 2008-01-08 21:30:19 (1 year ago)
- Files:
-
- trunk/classes/misc/Member.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/classes/misc/Member.php
r122 r123 383 383 $today = new DateTime('now', new DateTimeZone('UTC')); 384 384 $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)); 386 386 $table->addRow(Array($LANG['Posts'] . ':', $this->posts . ' (' . round($this->posts / $days , 1) . ' ' . $LANG['per_day'] . ')')); 387 387 $table->addRow(Array($LANG['Stage'] . ':', $this->stage));
