1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-12-02 17:52:59 +01:00

Fix E_NOTICE in SFTP.php (thanks dlgoodchild!)

This commit is contained in:
terrafrost 2012-12-14 08:45:35 -06:00
parent 65193d9a25
commit a731220785

View File

@ -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;
}