]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-15682 fixed isset() test
authorskodak <skodak>
Thu, 25 Sep 2008 07:41:30 +0000 (07:41 +0000)
committerskodak <skodak>
Thu, 25 Sep 2008 07:41:30 +0000 (07:41 +0000)
login/signup.php

index a3e6e2fcbe54e47d8ccbfff73a4ed3b00b96a137..4ee44b361c579b74614de041e2f97085b1b7cfd3 100644 (file)
@@ -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');