Commit c765e1be authored by wundo's avatar wundo

Issue #2325611 by coltex: Fix 'Undefined property' notice

parent 8b4597f8
......@@ -364,7 +364,7 @@ function captcha_form_alter(&$form, $form_state, $form_id) {
// Get CAPTCHA type and module for given form_id.
$captcha_point = captcha_get_form_id_setting($form_id);
if ($captcha_point && $captcha_point->captcha_type) {
if ($captcha_point && !empty($captcha_point->captcha_type)) {
module_load_include('inc', 'captcha');
// Build CAPTCHA form element.
$captcha_element = array(
......
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