Skip to content
Browse files

fixed error expression

  • Loading branch information...
1 parent 95716a7 commit c5b30ad24a88bb8dfa41e847159325a628ccb410 @akalyaev akalyaev committed Mar 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/recaptcha/client_helper.rb
View
2 lib/recaptcha/client_helper.rb
@@ -6,7 +6,7 @@ def recaptcha_tags(options = {})
# Default options
key = options[:public_key] ||= Recaptcha.configuration.public_key
raise RecaptchaError, "No public key specified." unless key
- error = options[:error] ||= (defined? flash ? flash[:recaptcha_error] : "")
+ error = options[:error] ||= ((defined? flash) ? flash[:recaptcha_error] : "")
uri = Recaptcha.configuration.api_server_url(options[:ssl])
lang = options[:display] && options[:display][:lang] ? options[:display][:lang].to_sym : ""
html = ""

0 comments on commit c5b30ad

Please sign in to comment.
Something went wrong with that request. Please try again.