Fixed error-checking error in sftp.php
Merge pull request #5897 from hkjolhede/master

Fixed error-checking error in sftp.php