We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81b7508 commit f7fb87bCopy full SHA for f7fb87b
lib/simple_captcha/controller.rb
@@ -15,7 +15,7 @@ module ControllerHelpers #:nodoc
15
# end
16
def simple_captcha_valid?
17
return true if SimpleCaptcha.always_pass
18
- return @_simple_captcha_result unless @_simple_captcha_result.nil?
+ return @_simple_captcha_result unless !defined?(@_simple_captcha_result) || @_simple_captcha_result.nil?
19
20
if params[:captcha]
21
captcha_key = params[:captcha_key] || session[:captcha]
0 commit comments