SFTP: $content isn't defined when file is being written to

This commit is contained in:
terrafrost 2013-05-14 10:43:17 -05:00
parent ff88b7e685
commit af3f275f19

View File

@ -1687,7 +1687,7 @@ class Net_SFTP extends Net_SSH2 {
}
}
if ($length > 0 && $length <= strlen($content)) {
if ($length > 0 && $length <= $offset - $size) {
if ($local_file === false) {
$content = substr($content, 0, $length);
} else {