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; }