SFTP: CS adjustments

This commit is contained in:
terrafrost 2020-11-26 21:08:49 -06:00
parent 9547587cb7
commit 0b20aff6ff
1 changed files with 2 additions and 2 deletions

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