Skip to content
Snippets Groups Projects
Commit 85176ec0 authored by Jörn Friedrich Dreyer's avatar Jörn Friedrich Dreyer
Browse files

return correct result

parent 4ec1da30
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment