Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comments
Comment #1
hctomSorry.. I just mentioned, that the file paths are wrong in the patch. So here comes a better one.
hctom
Comment #2
soxofaan CreditAttribution: soxofaan commentedFixed in 6.x-2.x branch (6.x-1.x is not active anymore)
thanks
http://drupal.org/cvs?commit=216934