Browse files

MDL-29469 Enrolments : fixed whitespaces

  • Loading branch information...
1 parent a0380d6 commit 4d49d71f19629692fbe072a686ee6b76d3d8da6f @nebgor nebgor committed Nov 30, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 enrol/self/edit_form.php
View
4 enrol/self/edit_form.php
@@ -165,14 +165,14 @@ function validation($data, $files) {
* @return array index is the role id, value is the role name
*/
function extend_assignable_roles($context, $defaultrole) {
- global $DB;
+ global $DB;
$roles = get_assignable_roles($context);
$sql = "SELECT r.id, r.name
FROM {role} r
WHERE r.id = $defaultrole";
$results = $DB->get_record_sql($sql);
if (isset($results->name)) {
- $roles[$results->id] = $results->name;
+ $roles[$results->id] = $results->name;
}
return $roles;
}

0 comments on commit 4d49d71

Please sign in to comment.