mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
[VD:LocalFileSystem] fix notice error (enbug@6429ff5796f0d9daf8ebcdcc8543e3e4b5f13232)
This commit is contained in:
@@ -715,8 +715,8 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
|
||||
$path = $this->_joinPath($dir, $name);
|
||||
|
||||
$meta = stream_get_meta_data($fp);
|
||||
$uri = $meta['uri'];
|
||||
if (@is_file($uri)) {
|
||||
$uri = isset($meta['uri'])? $meta['uri'] : '';
|
||||
if ($uri && @is_file($uri)) {
|
||||
fclose($fp);
|
||||
if (!@rename($uri, $path) && !@copy($uri, $path)) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user