From 39a7a1d8816f525b18f8f65b11837b53cd4b5974 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Wed, 10 Feb 2016 09:47:07 +0000 Subject: Avoid a warning flooding logs --- index.php | 12 +++++++----- 1 file 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(' %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 .= ' ' . join(' ', $failed_arches) . ''; + 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 .= ' ' . join(' ', $failed_arches) . ''; + } } $s .= ''; -- cgit v1.2.1