Skip to content

Commit

Permalink
MDL-60771 mod_scorm: typecast score to integer
Browse files Browse the repository at this point in the history
  • Loading branch information
lameze committed Nov 10, 2017
1 parent 1d1086e commit 1d24a0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/scorm/report/graphs/classes/report.php
Expand Up @@ -77,7 +77,7 @@ protected function get_data($scoid, $allowedlist = []) {
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 {
Expand Down

0 comments on commit 1d24a0f

Please sign in to comment.