summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2014-12-08 15:25:21 +0100
committerJörn Friedrich Dreyer <jfd@butonic.de>2014-12-08 15:25:21 +0100
commit85176ec0721f5a1ac2dd8f08dd34f7d8d51b6a19 (patch)
treef7b1e333b18faff536dc56d7b5aafb24d7a7c328 /lib
parent4ec1da3014b1aecd2fa06575a69cd3c053eaba1a (diff)
downloadnextcloud-server-85176ec0721f5a1ac2dd8f08dd34f7d8d51b6a19.tar.gz
nextcloud-server-85176ec0721f5a1ac2dd8f08dd34f7d8d51b6a19.zip
return correct result
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/view.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/files/view.php b/lib/private/files/view.php
index 331ab9ba6cd..377a27b1554 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;
}