PHP 8.1 compatibility fix for CFileCache

This commit is contained in:
Marco Berger
2022-10-28 23:21:37 +02:00
parent 8b9619b65d
commit 5a092229d2
2 changed files with 2 additions and 2 deletions

View File

@@ -130,7 +130,7 @@ class CFileCache extends CCache
{
$cacheFile=$this->getCacheFile($key);
if(($time=$this->filemtime($cacheFile))>time())
return @file_get_contents($cacheFile,false,null,$this->embedExpiry ? 10 : null);
return @file_get_contents($cacheFile,false,null,$this->embedExpiry ? 10 : 0);
elseif($time>0)
@unlink($cacheFile);
return false;