From 9d07358763965635d5c85b1ad387df07eb88bbc7 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 5 Jan 2017 13:11:14 +0100 Subject: checkpkgist: avoid Undefined index: time in ... --- checkpkgist.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'checkpkgist.php') diff --git a/checkpkgist.php b/checkpkgist.php index 482cc4d..91b170b 100755 --- a/checkpkgist.php +++ b/checkpkgist.php @@ -103,7 +103,7 @@ function run($name, $rpm) { if (strpos($pkver, 'dev') !== false) { continue; } - $date = new DateTime($pkg['time']); + $date = new DateTime($pkg['time']??'now'); if (version_compare($pkver, $maxver, 'gt')) { $maxver = $pkver; $maxdat = $date; -- cgit