diff --git a/local/kaltura/locallib.php b/local/kaltura/locallib.php index f12db817..68fde013 100644 --- a/local/kaltura/locallib.php +++ b/local/kaltura/locallib.php @@ -792,7 +792,7 @@ function local_kaltura_get_config() { $configsettings->kaf_uri = 'http://'.$configsettings->kaf_uri; } - if (!empty($configsettings->kaf_uri) && $configsettings->lti_version == LTI_VERSION_1P3) { + if (isset($configsettings->lti_version) && (!empty($configsettings->kaf_uri) && $configsettings->lti_version == LTI_VERSION_1P3)) { $configsettings->public_keyset_url = $configsettings->kaf_uri . '/hosted/index/lti-advantage-key-set'; $configsettings->launch_url = $configsettings->kaf_uri . '/hosted/index/oidc-init'; $configsettings->redirection_uris = $configsettings->kaf_uri . '/hosted/index/oauth2-launch';