Skip to content

Commit

Permalink
Circumvent Undefined property warning resolves kaltura#405.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaboesch committed Feb 5, 2024
1 parent 0d1ebe6 commit 0592d18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion local/kaltura/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 0592d18

Please sign in to comment.