mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-27 03:42:40 +00:00
Fix E_NOTICE in SFTP.php (thanks dlgoodchild!)
This commit is contained in:
parent
65193d9a25
commit
a731220785
@ -1575,10 +1575,9 @@ class Net_SFTP extends Net_SSH2 {
|
||||
return false;
|
||||
}
|
||||
|
||||
$this->_logError($response);
|
||||
|
||||
// check the status from the NET_SFTP_STATUS case in the above switch after the file has been closed
|
||||
extract(unpack('Nstatus', $this->_string_shift($response, 4)));
|
||||
if ($status != NET_SFTP_STATUS_OK) {
|
||||
$this->_logError($response, $status);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user