From: skodak Date: Sat, 22 Apr 2006 15:55:20 +0000 (+0000) Subject: FIX ME notice for $cas_validate that should be IMHO global, but it works anyway X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=de177d8f2d78ab63de37d9f9b11e9802a3d1494e;p=moodle.git FIX ME notice for $cas_validate that should be IMHO global, but it works anyway --- diff --git a/auth/cas/lib.php b/auth/cas/lib.php index 2254341bb7..29d0aee4f7 100644 --- a/auth/cas/lib.php +++ b/auth/cas/lib.php @@ -98,6 +98,7 @@ function cas_ldap_auth_user_login ($username, $password) { function cas_authenticate_user_login ($username, $password) { global $CFG; + // FIX ME: $cas_validate is not global $cas_validate=true; phpCAS::client($CFG->cas_version,$CFG->cas_hostname,(int)$CFG->cas_port,$CFG->cas_baseuri); phpCAS::setLang($CFG->cas_language); @@ -131,6 +132,7 @@ function cas_authenticate_user_login ($username, $password) { */ function cas_automatic_authenticate ($user="") { global $CFG; + // FIX ME: $cas_validate is not global, but it works anyway ;-) if (!$cas_validate){ $cas_validate=true; phpCAS::client($CFG->cas_version,$CFG->cas_hostname,(int)$CFG->cas_port,$CFG->cas_baseuri);