1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-12-11 16:49:42 +01:00

SFTP: CS adjustments

This commit is contained in:
terrafrost 2020-11-26 21:08:49 -06:00
parent 9547587cb7
commit 0b20aff6ff

View File

@ -2278,7 +2278,7 @@ class Net_SFTP extends Net_SSH2
$res_offset = $stat['size'];
} else {
$res_offset = 0;
if ($local_file !== false && !is_callable($local_file) ) {
if ($local_file !== false && !is_callable($local_file)) {
$fp = fopen($local_file, 'wb');
if (!$fp) {
return false;
@ -2336,7 +2336,7 @@ class Net_SFTP extends Net_SSH2
if ($local_file === false) {
$content.= $temp;
} elseif (is_callable($local_file)) {
$local_file($temp);
$local_file($temp);
} else {
fputs($fp, $temp);
}