Fix uninit var

This commit is contained in:
Dennis Eichhorn 2017-11-11 17:04:24 +01:00
parent 5473f38805
commit ba90d72da0

View File

@ -355,7 +355,7 @@ class FileCache implements CacheInterface
}
if ($expire >= 0) {
$created = Directory::created($name)->getTimestamp();
$created = Directory::created(File::sanitize($key, self::SANITIZE))->getTimestamp();
$now = time();
$raw = file_get_contents($path);
$expireStart = strpos($raw, self::DELIM);