Plugin Directory

Changeset 217808


Ignore:
Timestamp:
03/15/2010 06:02:23 PM (16 years ago)
Author:
anukit
Message:

updated the get_summary function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cyclopress/branches/cp2/classes/cyclopress.php

    r217807 r217808  
    25012501        if (!$stats) return false;
    25022502   
    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']);
    25052505   
    25062506        $str  = '<dl class="cy">';
Note: See TracChangeset for help on using the changeset viewer.