diff options
author | Robin Appelman <icewind@owncloud.com> | 2016-06-07 15:00:59 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2016-06-07 15:04:24 +0200 |
commit | 6822689e381b12df035384b6b25ff8d07e6b57a3 (patch) | |
tree | b566bc58b7fdd0e46b186ae8b1831a7aac562edb /lib | |
parent | 46fe2ddf2e7a4413586095143521684a0377daad (diff) | |
download | nextcloud-server-6822689e381b12df035384b6b25ff8d07e6b57a3.tar.gz nextcloud-server-6822689e381b12df035384b6b25ff8d07e6b57a3.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)); + } } } } |