diff options
author | Robin Appelman <icewind@owncloud.com> | 2016-06-07 15:00:59 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2016-06-09 14:00:01 +0200 |
commit | 7970ff209918ffabb7750481e078753295d9bd55 (patch) | |
tree | c48f83ba12e1fcbd77eb39808baa4991901ca3c5 /lib | |
parent | 9b5fd515efd26f63b333bbbfa60b5b46c707d773 (diff) | |
download | nextcloud-server-7970ff209918ffabb7750481e078753295d9bd55.tar.gz nextcloud-server-7970ff209918ffabb7750481e078753295d9bd55.zip |
don't update storage mtime if we can't get the modified date
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/Cache/Updater.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/Files/Cache/Updater.php b/lib/private/Files/Cache/Updater.php index 820941abae1..4e17c4d778d 100644 --- a/lib/private/Files/Cache/Updater.php +++ b/lib/private/Files/Cache/Updater.php @@ -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)); + } } } } |