summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-06-07 15:00:59 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2016-06-09 14:00:01 +0200
commit7970ff209918ffabb7750481e078753295d9bd55 (patch)
treec48f83ba12e1fcbd77eb39808baa4991901ca3c5 /lib
parent9b5fd515efd26f63b333bbbfa60b5b46c707d773 (diff)
downloadnextcloud-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.php5
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));
+ }
}
}
}