Don't store results if they have no score.

HFP-173

(cherry picked from commit 516c70a)
pull/31/head
thomasmars 2016-10-28 10:46:05 +02:00
parent f28036ca0e
commit b4949c0d83
1 changed files with 1 additions and 1 deletions

View File

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