SFTP: get() didn't return data

This commit is contained in:
terrafrost 2013-06-25 16:37:20 -05:00
parent 7863f476d2
commit 3b56c695e2
1 changed files with 6 additions and 1 deletions

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