summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralexiswilke2012-08-09 22:27:33 (GMT)
committer Stefaan Lippens2012-08-09 22:27:33 (GMT)
commit5055dbd7759a70afefa123db4789ab3d56ebdfd2 (patch)
tree0ffe5a0dc5fb8ce0589866359de4b7014234a363
parent3a2452f31777b429d97f2441c2d88cf6b8107c13 (diff)
Issue 978304: minor require() tweak6.x-1.x
-rw-r--r--math_captcha/math_captcha.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/math_captcha/math_captcha.module b/math_captcha/math_captcha.module
index 52a7cfc..41e83d4 100644
--- a/math_captcha/math_captcha.module
+++ b/math_captcha/math_captcha.module
@@ -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)];