From: skodak Date: Thu, 25 Sep 2008 07:41:30 +0000 (+0000) Subject: MDL-15682 fixed isset() test X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6dfd522656206bfebadb4752e2d34e24455aee54;p=moodle.git MDL-15682 fixed isset() test --- 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');