False errors using the LocalFileSystem Driver and working with empty

files #2226
https://github.com/Studio-42/elFinder/issues/2226
This commit is contained in:
arubalucalasagni
2017-09-27 19:55:19 +02:00
parent e7c51f3977
commit 8038741556
+4 -1
View File
@@ -934,7 +934,10 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
* @author Dmitry (dio) Levashov
**/
protected function _filePutContents($path, $content) {
return file_put_contents($path, $content, LOCK_EX);
if (file_put_contents($path, $content, LOCK_EX) === false) {
return false;
}
return true;
}
/**