Do not filemtime() on "." directory. Use empty string instead
Fix #9928
This commit is contained in:
parent
d7666d9d3d
commit
564bf23c1b
|
@ -180,6 +180,11 @@ class Updater {
|
|||
$cache = $storage->getCache();
|
||||
$parentId = $cache->getParentId($internalPath);
|
||||
$parent = dirname($internalPath);
|
||||
|
||||
if ($parent === '.' || $parent === '/' || $parent === '\\') {
|
||||
$parent = '';
|
||||
}
|
||||
|
||||
if ($parentId != -1) {
|
||||
$cache->update($parentId, array('storage_mtime' => $storage->filemtime($parent)));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue