Skip to content

Commit

Permalink
Fixed a bug that was not yet merged for stable version
Browse files Browse the repository at this point in the history
  • Loading branch information
exe-cutor committed Apr 27, 2006
1 parent a83254c commit c6e8932
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions auth/shibboleth/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ function auth_get_userinfo($username) {
// reads user information from shibboleth attributes and return it in array()
global $CFG;

$config = (array)$CFG;
$pluginconfig = get_config('auth/shibboleth');

// Check whether we have got all the essential attributes
Expand All @@ -47,20 +46,20 @@ function auth_get_userinfo($username) {
foreach ($attrmap as $key=>$value) {
$result[$key]=utf8_decode($_SERVER[$value]);
}
// Provide an API to modify the information to fit the Moodle internal

// Provide an API to modify the information to fit the Moodle internal
// data representation
if (
$config["shib_convert_data"]
&& $config["shib_convert_data"] != ''
&& is_readable($config["shib_convert_data"])
$pluginconfig->convert_data
&& $pluginconfig->convert_data != ''
&& is_readable($pluginconfig->convert_data)
){

// Include a custom file outside the Moodle dir to
// modify the variable $moodleattributes
include($config["shib_convert_data"]);
include($pluginconfig->convert_data);
}

return $result;
}

Expand Down

0 comments on commit c6e8932

Please sign in to comment.