mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user