From cc250dd8d25851ba0f53cfc3b944f0eb08335b95 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Thu, 26 Nov 2020 17:44:52 +0000 Subject: Fix more warnings --- autobuild/results.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autobuild/results.php b/autobuild/results.php index 19af284..f841cd0 100644 --- a/autobuild/results.php +++ b/autobuild/results.php @@ -120,10 +120,10 @@ while (!feof($status_file)) { $failure[$rpm] = $status; $parsed = parse_package($rpm); $package = $parsed['package']; - if(!$prev_failure[$package]) { + if(!array_key_exists($package, $prev_failure)) { $broken[$rpm] = 1; } - if(!$packages[$package]) { + if(!array_key_exists($package, $packages)) { $removed[$rpm] = 1; } else { $build_stat = stat("$base_dir/$rpm"); -- cgit v1.2.1