Skip to content

Commit

Permalink
MDL-80674 mod_lti: fix undefined property warning during registration
Browse files Browse the repository at this point in the history
  • Loading branch information
snake committed Jan 19, 2024
1 parent 076379a commit 2cc26c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/lti/openid-registration.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
if ($doregister) {
$registrationpayload = json_decode(file_get_contents('php://input'), true);
$config = registration_helper::get()->registration_to_config($registrationpayload, $tokenres['clientid']);
if ($type->id) {
if (!empty($type->id)) {
lti_update_type($type, clone $config);
$typeid = $type->id;
} else {
Expand Down

0 comments on commit 2cc26c6

Please sign in to comment.