auth/cas: fixed a syntax error casting -- credits to Nigel McNie

This commit is contained in:
martinlanghoff
2005-12-12 03:21:11 +00:00
parent 01ac9a36d9
commit d6c2c60294
+1 -1
View File
@@ -136,7 +136,7 @@ function cas_automatic_authenticate ($user="") {
global $CFG;
if (!$cas_validate){
$cas_validate=true;
phpCAS::client($CFG->cas_version,$CFG->cas_hostname,(Integer)$CFG->cas_port,$CFG->cas_baseuri);
phpCAS::client($CFG->cas_version,$CFG->cas_hostname,(int)$CFG->cas_port,$CFG->cas_baseuri);
phpCAS::setLang($CFG->cas_language);
if (!phpCAS::isAuthenticated() && !$CFG->guestloginbutton){
phpCAS::authenticateIfNeeded();