[VD:LocalFileSystem] fix notice error (enbug@6429ff5796f0d9daf8ebcdcc8543e3e4b5f13232)

This commit is contained in:
nao-pon
2015-09-13 20:22:08 +09:00
parent 91300050e0
commit a3da55cdb3
+2 -2
View File
@@ -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;