mirror of
https://github.com/moodle/moodle.git
synced 2025-04-09 02:12:22 +02:00
Merge branch 'MDL-60596_master' of git://github.com/dmonllao/moodle
This commit is contained in:
commit
1ada616c56
@ -69,10 +69,8 @@ class completion_enabled extends \core_analytics\local\indicator\binary {
|
||||
|
||||
$course = $this->retrieve('course', $sampleid);
|
||||
|
||||
$cm = false;
|
||||
if ($sampleorigin === 'course_modules') {
|
||||
$cm = $this->retrieve('course_modules', $sampleid);
|
||||
}
|
||||
// It may not be available, but if it is the indicator checks if completion is enabled for the cm.
|
||||
$cm = $this->retrieve('course_modules', $sampleid);
|
||||
|
||||
$completion = new \completion_info($course);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user