NOMDL Fixed MNet filter setting in bulk user filter form

This commit is contained in:
David Mudrak
2010-07-28 11:07:05 +00:00
parent ad9432a604
commit 6fc35adf08
+1 -2
View File
@@ -138,7 +138,6 @@ class user_filtering {
} else {
$choices[$host->id] = $host->name.' ('.$host->wwwroot.')';
}
$choices[$host->id] = $host->name.' ('.$host->wwwroot.')';
}
if ($usedhosts = $DB->get_fieldset_sql("SELECT DISTINCT mnethostid FROM {user} WHERE deleted=0")) {
foreach ($usedhosts as $hostid) {
@@ -150,7 +149,7 @@ class user_filtering {
if (count($choices) < 2) {
return null; // filter not needed
}
return new user_filter_simpleselect('mnethostid', 'mnethostid', $advanced, 'mnethostid', $choices);
return new user_filter_simpleselect('mnethostid', get_string('mnetidprovider', 'mnet'), $advanced, 'mnethostid', $choices);
default: return null;
}