MDL-60771 mod_scorm: typecast score to integer

This commit is contained in:
Simey Lameze
2017-11-10 12:00:17 +08:00
parent ccf7578373
commit fbbcf45ef2
+1 -1
View File
@@ -77,7 +77,7 @@ class report extends \mod_scorm\report {
foreach ($attempts as $attempt) {
if ($trackdata = scorm_get_tracks($scoid, $attempt->userid, $attempt->attempt)) {
if (isset($trackdata->score_raw)) {
$score = $trackdata->score_raw;
$score = (int) $trackdata->score_raw;
if (empty($trackdata->score_min)) {
$minmark = 0;
} else {