Fixed the error handling for invalid ftp login

The ftp_login function throws a PHP warning on failure as well as returning false
Merge pull request #286 from stof/patch-3

Fixed the error handling for invalid ftp login