From f188c2d4212a1f1784d5af69838dfb5bb8d24d32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20B=C3=B6sch?= Date: Wed, 16 Aug 2023 09:40:01 +0200 Subject: [PATCH] Circumvent Undefined property warning resolves #405. --- local/kaltura/locallib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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';