From 40eed0894e2f8018643b6ce49c1826b4631866d9 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Wed, 25 Nov 2020 22:22:56 +0000 Subject: Fix warnings --- autobuild/results.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'autobuild') diff --git a/autobuild/results.php b/autobuild/results.php index 41e98b5..b81555c 100644 --- a/autobuild/results.php +++ b/autobuild/results.php @@ -248,11 +248,11 @@ foreach ($failure as $rpm => $error) { $parsed = parse_package($rpm); $history_link = 'History'; $status_html = ""; - if ($fixed[$rpm]) { + if (array_key_exists($rpm, $fixed)) { $status_html = " Fixed"; - } elseif ($removed[$rpm]) { + } elseif (array_key_exists($rpm, $removed)) { $status_html = " Removed"; - } elseif ($broken[$rpm]) { + } elseif (array_key_exists($rpm, $broken)) { $status_html = " New"; } $error_html = $error; -- cgit v1.2.1