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; return false;
} }
$this->_logError($response); extract(unpack('Nstatus', $this->_string_shift($response, 4)));
// check the status from the NET_SFTP_STATUS case in the above switch after the file has been closed
if ($status != NET_SFTP_STATUS_OK) { if ($status != NET_SFTP_STATUS_OK) {
$this->_logError($response, $status);
return false; return false;
} }