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
commit9d07358763965635d5c85b1ad387df07eb88bbc7 (patch)
treebddff8f5238b9669bc8919152c56dbecc63d9951
parentfd36c9acc7809af0229afd733017f754b75f561d (diff)
checkpkgist: avoid Undefined index: time in ...
-rwxr-xr-xcheckpkgist.php2
1 files changed, 1 insertions, 1 deletions
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;