Fixed error-checking error in sftp.php