Do not filemtime() on "." directory. Use empty string instead

Fix #9928
This commit is contained in:
Joas Schilling 2014-08-11 17:05:35 +02:00
parent d7666d9d3d
commit 564bf23c1b
1 changed files with 5 additions and 0 deletions

View File

@ -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)));
}