fix error
This commit is contained in:
parent
93ab471abd
commit
668e38b320
|
@ -182,7 +182,7 @@ class AsksController < ApplicationController
|
|||
end
|
||||
end
|
||||
end
|
||||
flag =(gotcha_valid? || !AskSetting.first.default_setting['recaptcha']) && @ask_question.save
|
||||
flag =(!ask_setting.default_setting['recaptcha'] || gotcha_valid?) && @ask_question.save
|
||||
if flag
|
||||
all_to_save.each do |to_save|
|
||||
flag = flag && to_save[1].save
|
||||
|
|
Loading…
Reference in New Issue