diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-12-12 08:34:28 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-12-12 08:34:28 +0100 |
commit | e969fe6b1222467349929523ea92192ca23f92d5 (patch) | |
tree | 67bbf63fbf671b19d18d4fe17517cc299a653c61 /lib | |
parent | 68932b30fd3347761ca75dd8b7289848b2d6b42e (diff) | |
parent | c615b3527f7c472afbc93d3293c7f467a99cbd0b (diff) | |
download | nextcloud-server-e969fe6b1222467349929523ea92192ca23f92d5.tar.gz nextcloud-server-e969fe6b1222467349929523ea92192ca23f92d5.zip |
Merge pull request #12698 from owncloud/handle_readonly_shared_files
Handle readonly shared files
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/files/view.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/files/view.php b/lib/private/files/view.php index 4b3d167f8e9..93edbede607 100644 --- a/lib/private/files/view.php +++ b/lib/private/files/view.php @@ -678,7 +678,7 @@ class View { $source = fopen($tmpFile, 'r'); if ($source) { - $this->file_put_contents($path, $source); + $result = $this->file_put_contents($path, $source); // $this->file_put_contents() might have already closed // the resource, so we check it, before trying to close it // to avoid messages in the error log. @@ -686,7 +686,7 @@ class View { fclose($source); } unlink($tmpFile); - return true; + return $result; } else { return false; } |