diff options
author | Pascal Terjan <pterjan@gmail.com> | 2016-02-10 09:47:07 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@gmail.com> | 2016-02-10 09:47:07 +0000 |
commit | 39a7a1d8816f525b18f8f65b11837b53cd4b5974 (patch) | |
tree | 803dea99cf278904f274ca5b872743130877ff99 /index.php | |
parent | accaae2e0a7f741a9d98a52e34295ec1b9027f2a (diff) | |
download | pkgsubmit-39a7a1d8816f525b18f8f65b11837b53cd4b5974.tar pkgsubmit-39a7a1d8816f525b18f8f65b11837b53cd4b5974.tar.gz pkgsubmit-39a7a1d8816f525b18f8f65b11837b53cd4b5974.tar.bz2 pkgsubmit-39a7a1d8816f525b18f8f65b11837b53cd4b5974.tar.xz pkgsubmit-39a7a1d8816f525b18f8f65b11837b53cd4b5974.zip |
Avoid a warning flooding logs
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>'; |