The change in scorm_api.php shouldn't be in this commit. We are depending on $lp_id and $user_id, which we don't know if we have received at this point. Please alter this PR, removing the change from scorm_api.php (leave it as it was)