From b9653b42ab5883fb718cd58db3db9e5924603d30 Mon Sep 17 00:00:00 2001 From: tbaddade Date: Mon, 6 May 2024 14:36:47 +0200 Subject: [PATCH] =?UTF-8?q?Artickel=20ID=20als=20Integer=20=C3=BCbergeben?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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; }