Changeset 42 for trunk/index.php
- Timestamp:
- Sep 14, 2020, 1:41:50 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/index.php
r41 r42 572 572 else $Output .= '<td> </td>'; 573 573 $Output .= '<td>'.$Item['Length'].'</td>'; 574 $Speed = $Item['Length'] / $Item['Duration'] * 3600; 574 575 575 if (($Item['Duration'] > 0) and ($Item['Duration'] < $Item['Length'] * 3600 / $this->MinRunnerSpeed)) 576 { 577 $Speed = $Item['Length'] / $Item['Duration'] * 3600; 576 578 $Output .= '<td>'.$PrefixMultiplier->Add($Speed, '', 4, 'Decimal').'</td>'; 577 579 } else $Output .= '<td> </td>'; 578 580 $Output .= '</tr>'; 579 581 } … … 726 728 if (!is_numeric($RunnerId)) die(T('Runner id needs to be numeric')); 727 729 728 $DbResult = $this->Database->query('SELECT Runner.Name, Team.Name AS TeamName, Team.Id AS TeamId, Team.Year FROM Runner LEFT JOIN Team ON Team.Id=Runner.Team WHERE Runner.Id='.$RunnerId);730 $DbResult = $this->Database->query('SELECT Runner.Name, Team.Name AS TeamName, Team.Id AS TeamId, Runner.Year FROM Runner LEFT JOIN Team ON Team.Id=Runner.Team WHERE Runner.Id='.$RunnerId); 729 731 $DbRow = $DbResult->fetch_assoc(); 730 732 $this->Title = T('Runner').' '.$DbRow['Name'].' - '.$this->Title;
Note:
See TracChangeset
for help on using the changeset viewer.