Browse Source

[svn r12960] Returning error code as string as required by the SCORM 1.2 rule: "The return values are Strings that can be converted to integer numbers that identify errors [...]"

Yannick Warnier 17 years ago
parent
commit
69192c1843
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main/newscorm/scorm_api.php

+ 1 - 1
main/newscorm/scorm_api.php

@@ -548,7 +548,7 @@ function Finish(val) {
 
 function LMSGetLastError() {
 	logit_scorm('LMSGetLastError()',1);
-	return(G_LastError);
+	return(G_LastError.toString());
 }
 
 function GetLastError() {