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 | 9d07358763965635d5c85b1ad387df07eb88bbc7 (patch) | |
tree | bddff8f5238b9669bc8919152c56dbecc63d9951 | |
parent | fd36c9acc7809af0229afd733017f754b75f561d (diff) |
checkpkgist: avoid Undefined index: time in ...
-rwxr-xr-x | checkpkgist.php | 2 |
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; |