1
0
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:
terrafrost 2013-06-25 16:37:20 -05:00
parent 7863f476d2
commit 3b56c695e2

View File

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