summaryrefslogtreecommitdiffstats
path: root/lib/private/files/view.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-05-13 14:07:18 +0200
committerRobin Appelman <icewind@owncloud.com>2015-06-01 13:22:56 +0200
commit2d63fd77de1cbfdb0a3474cadf99f1dcf4962d5f (patch)
treea8ccadb5985452daee8e18f62f5913f6702b8414 /lib/private/files/view.php
parent1270c6800dd439e411278764e3a2ddb2f68040ac (diff)
downloadnextcloud-server-2d63fd77de1cbfdb0a3474cadf99f1dcf4962d5f.tar.gz
nextcloud-server-2d63fd77de1cbfdb0a3474cadf99f1dcf4962d5f.zip
dont apply callback wrapper when fopen failed
Diffstat (limited to 'lib/private/files/view.php')
-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 b1333b4150c..6bf864c00ab 100644
--- a/lib/private/files/view.php
+++ b/lib/private/files/view.php
@@ -988,7 +988,7 @@ class View {
$this->updater->update($path, $extraParam);
}
- if ($operation === 'fopen') {
+ if ($operation === 'fopen' and $result) {
$result = CallbackWrapper::wrap($result, null, null, function () use ($hooks, $path) {
if (in_array('write', $hooks)) {
$this->unlockFile($path, ILockingProvider::LOCK_EXCLUSIVE);