summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@gmail.com>2016-02-10 09:47:07 +0000
committerPascal Terjan <pterjan@gmail.com>2016-02-10 09:47:07 +0000
commit39a7a1d8816f525b18f8f65b11837b53cd4b5974 (patch)
tree803dea99cf278904f274ca5b872743130877ff99 /index.php
parentaccaae2e0a7f741a9d98a52e34295ec1b9027f2a (diff)
downloadpkgsubmit-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.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>';