Skip to content

Commit

Permalink
Fix setting of returnUrl property (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
spvickers committed Sep 30, 2024
1 parent 903e550 commit 3aaa85c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Tool.php
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ public function getMessageParameters(?bool $strictMode = null, bool $disableCook
if ($this->ok && is_null($this->messageParameters)) {
$this->parseMessage($disableCookieCheck, $generateWarnings);
}
if ($this->ok && is_null($this->messageParameters)) {
if ($this->ok && !is_null($this->messageParameters)) {
// Set debug mode
if (!Util::$logLevel->logDebug()) {
$this->debugMode = (isset($this->messageParameters['custom_debug']) &&
Expand Down Expand Up @@ -1786,10 +1786,10 @@ private function authenticate(bool $disableCookieCheck, bool $generateWarnings):
}
if (empty($this->context)) {
$this->resourceLink = ResourceLink::fromPlatform($this->platform,
trim($this->messageParameters['resource_link_id']), $contentItemId);
trim($this->messageParameters['resource_link_id']), $contentItemId);
} else {
$this->resourceLink = ResourceLink::fromContext($this->context,
trim($this->messageParameters['resource_link_id']), $contentItemId);
trim($this->messageParameters['resource_link_id']), $contentItemId);
}
$title = '';
if (isset($this->messageParameters['resource_link_title'])) {
Expand Down

0 comments on commit 3aaa85c

Please sign in to comment.