Merge branch 'release' into improved-file-handling

JI-92-path-fix
Frode Petterson 2016-11-01 16:30:32 +01:00
commit 1173341b76
1 changed files with 1 additions and 1 deletions

View File

@ -1643,7 +1643,7 @@ H5P.shuffleArray = function (array) {
* Reported time consumption/usage * Reported time consumption/usage
*/ */
H5P.setFinished = function (contentId, score, maxScore, time) { H5P.setFinished = function (contentId, score, maxScore, time) {
if (H5PIntegration.postUserStatistics === true) { if (typeof score === 'number' && H5PIntegration.postUserStatistics === true) {
/** /**
* Return unix timestamp for the given JS Date. * Return unix timestamp for the given JS Date.
* *