line is covered by tests which are failing on PHP7.1

fixes #4111
This commit is contained in:
Carsten Brandt
2016-12-05 16:08:58 +01:00
parent 9a70722b1e
commit e1eb6ef9a6
2 changed files with 4 additions and 3 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 : -1);
return @file_get_contents($cacheFile,false,null,$this->embedExpiry ? 10 : null);
elseif($time>0)
@unlink($cacheFile);
return false;