From 3aaa85c26ad90d87328235fbfde249b52fb36400 Mon Sep 17 00:00:00 2001 From: Stephen Vickers Date: Mon, 30 Sep 2024 17:07:10 +0100 Subject: [PATCH] Fix setting of returnUrl property (#89) --- src/Tool.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Tool.php b/src/Tool.php index 5bd8a8c..2020687 100644 --- a/src/Tool.php +++ b/src/Tool.php @@ -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']) && @@ -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'])) {