return correct result

This commit is contained in:
Jörn Friedrich Dreyer 2014-12-08 15:25:21 +01:00
parent 4ec1da3014
commit 85176ec072
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}