Permalink
Browse files

Profile fields to be synced via MNet now respect the 'use defaults' o…

…ption
  • Loading branch information...
1 parent 19414fa commit 13b78fda00ff71eacd592e8445129d6aa7923cdb @mudrd8mz mudrd8mz committed Nov 26, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 mnet/lib.php
View
@@ -859,7 +859,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('moodle', 'mnetprofile' . $key . 'fields'));
- if (1 === get_config('mnet', 'host' . $peer->id . $key . 'default')) {
+ if ('1' === get_config('mnet', 'host' . $peer->id . $key . 'default')) {
return array_merge($tmp['forced'], $defaults);
}
$hostsettings = get_config('mnet', 'host' . $peer->id . $key . 'fields');

0 comments on commit 13b78fd

Please sign in to comment.