Hi @all,

when you submit the general CAPTCHA settings form with no challenges defined, you get the following error:

warning: Invalid argument supplied for foreach() in sites/all/modules/contributed/utils/captcha/captcha.admin.inc on line 145.

So I guess you should wrap the loop with an if-statement that checks if $form_state['values']['captcha_types'] is an array and not empty. You could use the attached patch to change the code as mentioned.

Thanx in advance & cheers

hctom

CommentFileSizeAuthor
#1 patch.txt1.48 KBhctom
patch.txt1.64 KBhctom
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hctom’s picture

FileSize
1.48 KB

Sorry.. I just mentioned, that the file paths are wrong in the patch. So here comes a better one.

hctom

soxofaan’s picture

Version: 6.x-1.0-rc2 » 6.x-2.x-dev
Priority: Normal » Minor
Status: Active » Fixed

Fixed in 6.x-2.x branch (6.x-1.x is not active anymore)
thanks

http://drupal.org/cvs?commit=216934

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.