Skip to content

Commit

Permalink
Use course id for comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
micaherne authored Apr 23, 2024
1 parent faeafe9 commit f8279d4
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 f8279d4

Please sign in to comment.