Skip to content

Commit

Permalink
Bugfix: Where supposed int was of type string
Browse files Browse the repository at this point in the history
  • Loading branch information
georgmaisser committed Jul 12, 2024
1 parent de8d774 commit 3273863
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/teachers_handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public function save_from_form(stdClass &$formdata, bool $doenrol = true) {
$optionsettings->cmid,
null,
$doenrol,
$formdata->courseid ?? 0
(int)$formdata->courseid ?? 0
)
) {
// Add teacher to group not yet implemented! (Third parameter of the function).
Expand Down

0 comments on commit 3273863

Please sign in to comment.