Skip to content

Commit

Permalink
Merge pull request #751 from micaherne/type-error-MOODLE_403_STABLE
Browse files Browse the repository at this point in the history
Type notice on installation
  • Loading branch information
danmarsden authored Apr 23, 2024
2 parents faeafe9 + f8279d4 commit 5acefe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,7 @@ function attendance_get_automarkoptions() {
$options[ATTENDANCE_AUTOMARK_ALL] = get_string('automarkall', 'attendance');
}
$options[ATTENDANCE_AUTOMARK_CLOSE] = get_string('automarkclose', 'attendance');
if ($COURSE == SITEID || $COURSE->enablecompletion == COMPLETION_ENABLED) {
if ($COURSE->id == SITEID || $COURSE->enablecompletion == COMPLETION_ENABLED) {
$options[ATTENDANCE_AUTOMARK_ACTIVITYCOMPLETION] = get_string('onactivitycompletion', 'attendance');
}

Expand Down

0 comments on commit 5acefe2

Please sign in to comment.