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 committed by Arthur Schiwon
parent 9b5fd515ef
commit 7970ff2099
No known key found for this signature in database
GPG key ID: 7424F1874854DF23

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