Skip to content

Commit

Permalink
null coalesce $state['mfaLearnMoreUrl'] for the review page
Browse files Browse the repository at this point in the history
fixes error:
impleSAML\Error\Exception: Warning - Undefined array key "mfaLearnMoreUrl" at /data/vendor/simplesamlphp/simplesamlphp/modules/profilereview/public/nag.php:37
  • Loading branch information
briskt committed Jul 17, 2024
1 parent 09f751f commit 3bc4a85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/profilereview/public/nag.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
$t->data['profile_url'] = $state['profileUrl'];
$t->data['method_options'] = $state['methodOptions'] ?? [];
$t->data['mfa_options'] = $state['mfaOptions'] ?? [];
$t->data['mfa_learn_more_url'] = $state['mfaLearnMoreUrl'];
$t->data['mfa_learn_more_url'] = $state['mfaLearnMoreUrl'] ?? '';
$t->send();

$logger->warning(json_encode([
Expand Down

0 comments on commit 3bc4a85

Please sign in to comment.