Skip to content

Commit

Permalink
MDL-29469 Enrolments : fixed whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Aparup Banerjee committed Nov 30, 2011
1 parent 96b3002 commit b50ac85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions enrol/self/edit_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b50ac85

Please sign in to comment.