Skip to content

Commit

Permalink
Artickel ID als Integer übergeben (#566)
Browse files Browse the repository at this point in the history
Co-authored-by: Jan Kristinus <[email protected]>
  • Loading branch information
tbaddade and dergel authored Nov 25, 2024
1 parent 57d8bc2 commit 64ecb56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/yrewrite/path_resolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 64ecb56

Please sign in to comment.