From d105480b59715f8f274db1463660aeeb7ce1a026 Mon Sep 17 00:00:00 2001 From: tbaddade Date: Thu, 14 Mar 2024 10:58:52 +0100 Subject: [PATCH] Unexpected vartype in cast() --- lib/Watson/Foundation/Watson.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Watson/Foundation/Watson.php b/lib/Watson/Foundation/Watson.php index 0298131..0fff71a 100644 --- a/lib/Watson/Foundation/Watson.php +++ b/lib/Watson/Foundation/Watson.php @@ -136,7 +136,7 @@ public static function getRegisteredPageParam($param, $default = false) public static function saveRegisteredPageParams(array $providerParams) { - $watsonParams = \rex_request::session('watson_params', []); + $watsonParams = \rex_request::session('watson_params', 'array', []); foreach ($providerParams as $providerParam) { if (isset($_REQUEST[$providerParam])) { $watsonParams[$providerParam] = $_REQUEST[$providerParam];