Skip to content
Browse files

MDL-28739 SCORM trim minnormalizedmeasure before saving it

  • Loading branch information...
1 parent 7969f1e commit 45999e7895ad46b00eb291a3fc0c0591acc2a8ed @danmarsden danmarsden committed Aug 13, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/scorm/datamodels/scormlib.php
View
2 mod/scorm/datamodels/scormlib.php
@@ -600,7 +600,7 @@ function scorm_parse_scorm($scorm, $manifest) {
$obj->primaryobj = $objective->primaryobj;
$obj->satisfiedbumeasure = $objective->satisfiedbymeasure;
$obj->objectiveid = $objective->objectiveid;
- $obj->minnormalizedmeasure = $objective->minnormalizedmeasure;
+ $obj->minnormalizedmeasure = trim($objective->minnormalizedmeasure);
$objectiveid = $DB->insert_record('scorm_seq_objective', $obj);
if (isset($objective->mapinfos)) {
foreach ($objective->mapinfos as $objmapinfo) {

0 comments on commit 45999e7

Please sign in to comment.
Something went wrong with that request. Please try again.