diff --git a/lib/private/files/view.php b/lib/private/files/view.php index 331ab9ba6cd5589316b6304e1bd4311784173123..377a27b15540f815406987f28a4e56ed1ece309a 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; }