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
merged from MOODLE_19_STABLE
This commit is contained in:
poltawski 2008-05-02 10:48:54 +00:00
parent a5ca5003f2
commit 45e94d82dd
2 changed files with 2 additions and 2 deletions

View File

@ -544,7 +544,7 @@ function SCORMapi1_2() {
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];
}

View File

@ -1120,7 +1120,7 @@ function SCORMapi1_3() {
echo 'popupwin(result);';
}
?>
var results = result.split('\n');
var results = String(result).split('\n');
if ((results.length > 2) && (navrequest != '')) {
eval(results[2]);
}