summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--captcha.module2
1 files changed, 2 insertions, 0 deletions
diff --git a/captcha.module b/captcha.module
index 8b4adbd..9128b61 100644
--- a/captcha.module
+++ b/captcha.module
@@ -208,6 +208,8 @@ function captcha_element_process($element, &$form_state, $complete_form) {
else {
// Generate a new CAPTCHA session if we could not reuse one from a posted form.
$captcha_sid = _captcha_generate_captcha_session($this_form_id, CAPTCHA_STATUS_UNSOLVED);
+ // Set $posted_form_id during the first rendering of the form.
+ $posted_form_id = $this_form_id;
}
// Store CAPTCHA session ID as hidden field.