Changeset 217808
- Timestamp:
- 03/15/2010 06:02:23 PM (16 years ago)
- File:
-
- 1 edited
-
cyclopress/branches/cp2/classes/cyclopress.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cyclopress/branches/cp2/classes/cyclopress.php
r217807 r217808 2501 2501 if (!$stats) return false; 2502 2502 2503 $avg_distance = ($stats _now['total_rides'] == 0) ? 0 : round($stats['total_miles']/$stats['total_rides'],2);2504 $avg_time = ($stats _now['total_rides'] == 0) ? $this->units->minutes_human(0) : $this->units->minutes_human($stats['total_time']/$stats['total_rides']);2503 $avg_distance = ($stats['total_rides'] == 0) ? 0 : round($stats['total_miles']/$stats['total_rides'],2); 2504 $avg_time = ($stats['total_rides'] == 0) ? $this->units->minutes_human(0) : $this->units->minutes_human($stats['total_time']/$stats['total_rides']); 2505 2505 2506 2506 $str = '<dl class="cy">';
Note: See TracChangeset
for help on using the changeset viewer.