mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-12 09:09:39 +01:00
SFTP: get() didn't return data
This commit is contained in:
parent
7863f476d2
commit
3b56c695e2
@ -1714,7 +1714,12 @@ class Net_SFTP extends Net_SSH2 {
|
||||
fclose($fp);
|
||||
}
|
||||
|
||||
return $this->_close_handle($handle);
|
||||
if (!$this->_close_handle($handle)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// if $content isn't set that means a file was written to
|
||||
return isset($content) ? $content : true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user