diff --git a/hwe/sammo/API/Global/GetConst.php b/hwe/sammo/API/Global/GetConst.php index 6154c581..b568905f 100644 --- a/hwe/sammo/API/Global/GetConst.php +++ b/hwe/sammo/API/Global/GetConst.php @@ -109,7 +109,7 @@ class GetConst extends \sammo\BaseAPI public function tryCache(): ?APICacheResult { if (is_subclass_of('\\sammo\\VersionGit', '\\sammo\VersionGitDynamic')) { - return new APICacheResult(TimeUtil::secondsToDateTime($this->findLastModified(), true, true)); + return new APICacheResult(TimeUtil::secondsToDateTime($this->findLastModified()??\time(), true, true)); } return new APICacheResult(null, $this->getCacheKey());