From a7312207856bf1494a0f3c3176dd84dee9125483 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Fri, 14 Dec 2012 08:45:35 -0600 Subject: [PATCH] Fix E_NOTICE in SFTP.php (thanks dlgoodchild!) --- phpseclib/Net/SFTP.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/phpseclib/Net/SFTP.php b/phpseclib/Net/SFTP.php index d464955e..da436e87 100644 --- a/phpseclib/Net/SFTP.php +++ b/phpseclib/Net/SFTP.php @@ -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; }