Skip to content

Commit

Permalink
null coalesce to prevent a type error
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Oct 10, 2024
1 parent 6664fdc commit 223713e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/expirychecker/public/about2expire.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
);

$returnTo = Utilities::getUrlFromRelayState(
$state['saml:RelayState']
$state['saml:RelayState'] ?? ''
);
if (!empty($returnTo)) {
$passwordChangeUrl .= '?returnTo=' . $returnTo;
Expand Down
2 changes: 1 addition & 1 deletion modules/expirychecker/public/expired.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
);

$returnTo = Utilities::getUrlFromRelayState(
$state['saml:RelayState']
$state['saml:RelayState'] ?? ''
);
if (!empty($returnTo)) {
$passwordChangeUrl .= '?returnTo=' . $returnTo;
Expand Down

0 comments on commit 223713e

Please sign in to comment.