Commit a4b28962 authored by Andrew Nicols's avatar Andrew Nicols
Browse files

Merge branch 'wip-mdl-55739' of https://github.com/rajeshtaneja/moodle

parents 952ffbc2 16e62ecc
...@@ -701,7 +701,7 @@ function get_moduleinfo_data($cm, $course) { ...@@ -701,7 +701,7 @@ function get_moduleinfo_data($cm, $course) {
foreach ($items as $item) { foreach ($items as $item) {
if (!empty($item->outcomeid)) { if (!empty($item->outcomeid)) {
$data->{'outcome_' . $item->outcomeid} = 1; $data->{'outcome_' . $item->outcomeid} = 1;
} else if (!empty($item->gradepass)) { } else if (isset($item->gradepass)) {
$decimalpoints = $item->get_decimals(); $decimalpoints = $item->get_decimals();
$data->gradepass = format_float($item->gradepass, $decimalpoints); $data->gradepass = format_float($item->gradepass, $decimalpoints);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment