mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
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:
parent
a5ca5003f2
commit
45e94d82dd
@ -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];
|
||||
}
|
||||
|
@ -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]);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user