summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2017-01-05 13:11:14 +0100
committerRemi Collet <fedora@famillecollet.com>2017-01-05 13:11:14 +0100
commit89fe735fe09c613474379e928c4308375382f6c9 (patch)
treebd57d43672f6848f3a435faf62c1caf3fbeb2807
parent2a18f60484f87fa4d279e1e5f1fdfc5455e476c6 (diff)
checkpkgist: avoid Undefined index: time in ...
-rwxr-xr-xcheckpkgist/checkpkgist.php2
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;