Skip to content

Commit

Permalink
Ensure returning string for fieldname
Browse files Browse the repository at this point in the history
  • Loading branch information
Laur0r authored Oct 21, 2024
1 parent 5be48f4 commit 649baa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/bulkenrol_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ private function get_fieldname($fieldoption) {
$fieldinfo = explode("_", $fieldoption, 2);
switch ($fieldinfo[0]) {
case "u":
return $fieldinfo[1];
return get_string($fieldinfo[1]);
case "c":
return $DB->get_field('user_info_field', 'name', array("id" => intval($fieldinfo[1])));
default:
Expand Down

0 comments on commit 649baa5

Please sign in to comment.