don't update storage mtime if we can't get the modified date

This commit is contained in:
Robin Appelman 2016-06-07 15:00:59 +02:00
parent 46fe2ddf2e
commit 6822689e38
1 changed files with 4 additions and 1 deletions

View File

@ -231,7 +231,10 @@ class Updater implements IUpdater {
$parentId = $this->cache->getParentId($internalPath);
$parent = dirname($internalPath);
if ($parentId != -1) {
$this->cache->update($parentId, array('storage_mtime' => $this->storage->filemtime($parent)));
$mtime = $this->storage->filemtime($parent);
if ($mtime !== false) {
$this->cache->update($parentId, array('storage_mtime' => $mtime));
}
}
}
}