summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/index.php b/index.php
index 5411e85..cc3174d 100644
--- a/index.php
+++ b/index.php
@@ -191,11 +191,13 @@ if ($total > 0) {
: sprintf('<span class="status-box"></span> %s %s',
$typestr, $show_time);
- $failed_arches = array_keys($p['status']['fail']);
- if (!empty($failed_arches)) {
- sort($failed_arches);
- $typelink = '/uploads/failure/' . $p['path'];
- $s .= '<a rel="nofollow" href="' . $typelink . '" class="status-link"><span class="failure"><span class="status-box"></span> ' . join(' ', $failed_arches) . '</span></a>';
+ if (isset($p['status']['fail'])) {
+ $failed_arches = array_keys($p['status']['fail']);
+ if (!empty($failed_arches)) {
+ sort($failed_arches);
+ $typelink = '/uploads/failure/' . $p['path'];
+ $s .= '<a rel="nofollow" href="' . $typelink . '" class="status-link"><span class="failure"><span class="status-box"></span> ' . join(' ', $failed_arches) . '</span></a>';
+ }
}
$s .= '</td></tr>';