diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -180,11 +180,13 @@ if ($total > 0) { $show_time = ''; if ($p['type'] == 'uploaded') { - $tdiff = timediff($p['buildtime']['start'], $p['buildtime']['end']); // use $p['buildtime']['diff']; instead? - $show_time = '<span class="timeinfo">' . $tdiff . '</span>'; + if ($p['buildtime']['start'] && $p['buildtime']['end']) { + $tdiff = timediff($p['buildtime']['start'], $p['buildtime']['end']); // use $p['buildtime']['diff']; instead? + $show_time = '<span class="timeinfo">' . $tdiff . '</span>'; - $tdiff = floor(($p['buildtime']['end'] - $p['buildtime']['start']) / 60)*60; - @$buildtime_stats[timediff(0, $tdiff)] += 1; + $tdiff = floor(($p['buildtime']['end'] - $p['buildtime']['start']) / 60)*60; + @$buildtime_stats[timediff(0, $tdiff)] += 1; + } } $s .= ($typelink != '') ? sprintf('<a rel="nofollow" href="%s" class="status-link"><span class="status-box"></span> %s %s</a>', |