diff options
author | Remi Collet <fedora@famillecollet.com> | 2017-01-05 13:11:14 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2017-01-05 13:11:14 +0100 |
commit | 89fe735fe09c613474379e928c4308375382f6c9 (patch) | |
tree | bd57d43672f6848f3a435faf62c1caf3fbeb2807 | |
parent | 2a18f60484f87fa4d279e1e5f1fdfc5455e476c6 (diff) |
checkpkgist: avoid Undefined index: time in ...
-rwxr-xr-x | checkpkgist/checkpkgist.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; |