summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--index.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/index.php b/index.php
index b7162f9..1bf8329 100644
--- a/index.php
+++ b/index.php
@@ -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>',