Closed (fixed)
Project:
CAPTCHA
Version:
6.x-2.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 May 2009 at 11:30 UTC
Updated:
9 Jun 2009 at 22:20 UTC
Jump to comment: Most recent file
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 commentedFixed in 6.x-2.x branch (6.x-1.x is not active anymore)
thanks
http://drupal.org/cvs?commit=216934