Applied fix to FTP login where particular resource type checking caused PHP to provide obscure info.