From 64ecb56e843c7752465dca20939b01ecc19c90f4 Mon Sep 17 00:00:00 2001 From: Thomas Blum Date: Mon, 25 Nov 2024 16:47:46 +0100 Subject: [PATCH] =?UTF-8?q?Artickel=20ID=20als=20Integer=20=C3=BCbergeben?= =?UTF-8?q?=20(#566)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Jan Kristinus --- lib/yrewrite/path_resolver.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/yrewrite/path_resolver.php b/lib/yrewrite/path_resolver.php index ff693ad..b00a415 100644 --- a/lib/yrewrite/path_resolver.php +++ b/lib/yrewrite/path_resolver.php @@ -93,7 +93,7 @@ public function resolve(string $url): void // normal exact check if ($result = $this->searchPath($domain, $url)) { - $structureAddon->setProperty('article_id', $result['article_id']); + $structureAddon->setProperty('article_id', (int) $result['article_id']); rex_clang::setCurrentId($result['clang_id']); return; } @@ -123,7 +123,7 @@ public function resolve(string $url): void } if (rex_article::get($params['article_id'], $clang)) { - $structureAddon->setProperty('article_id', $params['article_id']); + $structureAddon->setProperty('article_id', (int) $params['article_id']); rex_clang::setCurrentId($clang); return; }