We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ecddce commit 1c36364Copy full SHA for 1c36364
classes/completion/custom_completion.php
@@ -43,12 +43,12 @@ public function get_state(string $rule): int {
43
44
if (empty($subcourse->completioncourse)) {
45
// The rule not enabled, return early.
46
- return $type;
+ return COMPLETION_UNKNOWN;
47
}
48
49
if (empty($subcourse->refcourse)) {
50
// Misconfigured subcourse instance, behave as if was not enabled.
51
+ return COMPLETION_INCOMPLETE;
52
53
54
// Check if the referenced course is completed.
0 commit comments