summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;