Skip to content

Commit

Permalink
[VD:abstract] fix #2253 elFinderVolumeDriver::getWorkFile() dose no…
Browse files Browse the repository at this point in the history
…t work
  • Loading branch information
nao-pon committed Oct 23, 2017
1 parent 747f229 commit 5cdcd65
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions php/elFinderVolumeDriver.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -3698,9 +3698,11 @@ protected function getWorkFile($path) {
while(!feof($fp)) {
fwrite($wfp, fread($fp, 8192));
}
$this->_fclose($fp, $path);
$info = stream_get_meta_data($wfp);
fclose($wfp);
return $work;
if ($info && ! empty($info['uri'])) {
return $info['uri'];
}
}
}
return false;
Expand Down

0 comments on commit 5cdcd65

Please sign in to comment.