Skip to content

Commit

Permalink
[volume:ftp] fix enbug of 2494ffd
Browse files Browse the repository at this point in the history
  • Loading branch information
nao-pon committed Jan 23, 2015
1 parent 2494ffd commit fca0855
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion php/elFinderVolumeFTP.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -692,8 +692,10 @@ protected function _fopen($path, $mode='rb') {

if ($this->tmp) {
$local = $this->tmp.DIRECTORY_SEPARATOR.md5($path);
$fp = @fopen($local, $mode);
$fp = @fopen($local, 'wb');
if (ftp_fget($this->connect, $fp, $path, FTP_BINARY)) {
fclose($fp);
$fp = fopen($local, $mode);
return $fp;
}
@fclose($fp);
Expand Down

0 comments on commit fca0855

Please sign in to comment.