mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Merge branch 'MDL-64889_master' of https://github.com/marxjohnson/moodle
This commit is contained in:
commit
ec442a39dc
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ class progress {
|
||||||
// Get the number of modules that have been completed.
|
// Get the number of modules that have been completed.
|
||||||
$completed = 0;
|
$completed = 0;
|
||||||
foreach ($modules as $module) {
|
foreach ($modules as $module) {
|
||||||
$data = $completion->get_data($module, false, $userid);
|
$data = $completion->get_data($module, true, $userid);
|
||||||
$completed += $data->completionstate == COMPLETION_INCOMPLETE ? 0 : 1;
|
$completed += $data->completionstate == COMPLETION_INCOMPLETE ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue