When the module is first enabled a number of PHP warnings are generated because no captcha 'type' (image, math etc) has yet been selected.

The module trys to loads an empty string - 'captcha_.inc' file name.

CommentFileSizeAuthor
#1 patch_16.txt747 bytesxeniac
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

xeniac’s picture

Status: Active » Needs review
FileSize
747 bytes

_captcha_load() tries to access a system variable that does not exist at this moment.

Way 1 to solve the Problem:
change $captcha_type = variable_get("captcha_type", NULL); to $captcha_type = variable_get("captcha_type", 'math');
Way 2:
Check if variable_get() returns NULL and exit with FALSE.

arnabdotorg’s picture

Status: Needs review » Closed (fixed)

Fixed.