Commit 8f3ce6c1 authored by Sweetchuck's avatar Sweetchuck Committed by nikunj
Browse files

Issue #2257309 by Sweetchuck, Spokje, attiks, tomrog, loze, a.sinitsa, GaëlG:...

Issue #2257309 by Sweetchuck, Spokje, attiks, tomrog, loze, a.sinitsa, GaëlG: Undefined index: captcha_widgets in clientside_validation_regular() (line 225
parent 376b126c
......@@ -222,7 +222,7 @@ function clientside_validation_regular($form_id, $element, &$js_rules, $form_sta
break;
case 'captcha':
$settings = clientside_validation_settings_current_form();
if ($settings['validate_options']['captcha']) {
if ($settings['validate_options']['captcha'] && isset($element['captcha_widgets'])) {
$title = _clientside_validation_set_title(isset($element['captcha_widgets']['captcha_response']['#title']) ? $element['captcha_widgets']['captcha_response']['#title'] : $element['#name']);
$message = t('Wrong answer for !title', array('!title' => $title));
$case_sensitive = strpos($element['#captcha_validate'], 'insensitive') === FALSE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment