Explorar o código

[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 %!s(int64=17) %!d(string=hai) anos
pai
achega
69192c1843
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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() {