summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-12-05 22:54:47 +0100
committerGitHub <noreply@github.com>2018-12-05 22:54:47 +0100
commitecc8068e66abe77785cccffa0e4da1b5c209ebca (patch)
tree53b2f10b156032a54045928d4547321d8210b691
parente808661ca27c61bc298dd3c6cf42322839e9a0b6 (diff)
parent2c6d36105c4be443a73eae1051d0ed2887dc609f (diff)
downloadnextcloud-server-ecc8068e66abe77785cccffa0e4da1b5c209ebca.tar.gz
nextcloud-server-ecc8068e66abe77785cccffa0e4da1b5c209ebca.zip
Merge pull request #12857 from nextcloud/fix/emit_write_update_once_on_touch
Emit write update only once on touch
-rw-r--r--lib/private/Files/View.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php
index 19e38717803..21df67cf557 100644
--- a/lib/private/Files/View.php
+++ b/lib/private/Files/View.php
@@ -1157,7 +1157,7 @@ class View {
if ($result && in_array('delete', $hooks) and $result) {
$this->removeUpdate($storage, $internalPath);
}
- if ($result && in_array('write', $hooks) and $operation !== 'fopen') {
+ if ($result && in_array('write', $hooks, true) && $operation !== 'fopen' && $operation !== 'touch') {
$this->writeUpdate($storage, $internalPath);
}
if ($result && in_array('touch', $hooks)) {