Skip to content

Commit

Permalink
Fix fatal bug when playing LO through LTI and xAPI is not enabled
Browse files Browse the repository at this point in the history
 - The variable sessionParam does not exist, and the way that is checked causes a
   fatal error in xenith.js
  • Loading branch information
torinfo committed May 30, 2023
1 parent ae6395b commit 5a668d9
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -1316,7 +1316,7 @@ function x_KeepAlive()
{
const now = new Date().getTime();
let url = "website_code/php/keepalive.php" + "?t=" + now;
if (sessionParam != undefined)
if (typeof sessionParam !== 'undefined')
{
url = "website_code/php/keepalive.php" + sessionParam + "&t=" + now;
}
Expand Down

0 comments on commit 5a668d9

Please sign in to comment.