From c387881b84f1cfa54385c5af11d35703fa6cd491 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Sat, 12 Mar 2022 07:36:58 +0000 Subject: Fix some PHP warnings --- autobuild/results.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'autobuild/results.php') diff --git a/autobuild/results.php b/autobuild/results.php index da18802..5e2875f 100644 --- a/autobuild/results.php +++ b/autobuild/results.php @@ -111,9 +111,9 @@ while (!feof($status_file)) { if (preg_match("/^(.*): (.*)$/", $line, $matches)) { $rpm = $matches[1]; $status = $matches[2]; - if ($start_time == 0) { + if ($start_time == 0 && $status != 'recreate_srpm_failure' && $status != 'not_on_this_arch') { $build_stat = stat("$base_dir/$rpm"); - if ($build_stat['mtime']) { + if ($build_stat && $build_stat['mtime']) { $start_time = $build_stat['mtime']; } } -- cgit v1.2.1