MNET MDL-23001 bad use of get_config causing mnet SSO fail.

This commit is contained in:
Dan Marsden 2010-06-30 02:08:35 +00:00
parent 8d86a2ad3e
commit 2c0b7ba20e

View File

@ -866,7 +866,7 @@ function mnet_fields_to_import(mnet_peer $peer) {
*/
function _mnet_field_helper(mnet_peer $peer, $key) {
$tmp = mnet_profile_field_options();
$defaults = explode(',', get_config('mnetprofile' . $key . 'fields'));
$defaults = explode(',', get_config('moodle', 'mnetprofile' . $key . 'fields'));
if (1 === get_config('mnet', 'host' . $peer->id . $key . 'default')) {
return array_merge($tmp['forced'], $defaults);
}