diff options
Diffstat (limited to 'lib/private/files/view.php')
-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 73faf261c14..c01763cdad3 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; } |