Don't store results if they have no score.

HFP-173
pull/27/head
thomasmars 2016-10-28 10:46:05 +02:00
parent 0474ed89af
commit 516c70add5
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.
*