diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -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>'; |