From 6dfd522656206bfebadb4752e2d34e24455aee54 Mon Sep 17 00:00:00 2001 From: skodak Date: Thu, 25 Sep 2008 07:41:30 +0000 Subject: [PATCH] MDL-15682 fixed isset() test --- login/signup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/login/signup.php b/login/signup.php index a3e6e2fcbe..4ee44b361c 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'); -- 2.39.5