Skip to content
Snippets Groups Projects
Commit 5055dbd7 authored by AlexisWilke's avatar AlexisWilke Committed by Stefaan Lippens
Browse files

Issue 978304: minor require() tweak

parent 3a2452f3
No related branches found
No related tags found
No related merge requests found
......@@ -40,8 +40,8 @@ function math_captcha_captcha($op, $captcha_type='') {
case 'list':
return array('Math CAPTCHA');
case 'generate':
require_once('math_captcha.challenge.inc');
if ($captcha_type == 'Math CAPTCHA') {
require_once('math_captcha.challenge.inc');
// get the available challenges
$challenges = array_filter(_math_captcha_enabled_challenges());
$challenge = $challenges[array_rand($challenges)];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment