diff --git a/login/signup.php b/login/signup.php index a3e6e2fcbe5..4ee44b361c5 100644 --- a/login/signup.php +++ b/login/signup.php @@ -8,7 +8,7 @@ */ function signup_captcha_enabled() { global $CFG; - return isset($CFG->recaptchapublickey) && isset($CFG->recaptchaprivatekey) && get_config('auth/email', 'recaptcha'); + return !empty($CFG->recaptchapublickey) && !empty($CFG->recaptchaprivatekey) && get_config('auth/email', 'recaptcha'); } require_once('signup_form.php');