Permalink
Browse files

MDL-13716 - When storing progress of scorm activity a 404 is

encountered and js failure on split. Cast to string to avoid this.

thanks to Peter Chamberlin of LJCreate
backported from MOODLE_19_STABLE
  • Loading branch information...
1 parent 9ebf1ff commit d21d4c769cc8645268e50303c092f88c30fe1cd5 poltawski committed May 2, 2008
Showing with 2 additions and 2 deletions.
  1. +1 −1 mod/scorm/datamodels/scorm_12.js.php
  2. +1 −1 mod/scorm/datamodels/scorm_13.js.php
@@ -544,7 +544,7 @@ function StoreData(data,storetotaltime) {
var myRequest = NewHttpReq();
result = DoRequest(myRequest,"<?php p($CFG->wwwroot) ?>/mod/scorm/datamodel.php","id=<?php p($id) ?>&sesskey=<?php p($USER->sesskey) ?>"+datastring);
- results = result.split('\n');
+ results = String(result).split('\n');
errorCode = results[1];
return results[0];
}
@@ -891,7 +891,7 @@ function StoreData(data,storetotaltime) {
echo 'popupwin(result);';
}
?>
- results = result.split('\n');
+ results = String(result).split('\n');
if ((results.length > 2) && (navrequest != '')) {
eval(results[2]);
}

0 comments on commit d21d4c7

Please sign in to comment.