From 89fe735fe09c613474379e928c4308375382f6c9 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/checkpkgist.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'checkpkgist/checkpkgist.php') diff --git a/checkpkgist/checkpkgist.php b/checkpkgist/checkpkgist.php index 482cc4d..91b170b 100755 --- a/checkpkgist/checkpkgist.php +++ b/checkpkgist/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