Skip to content

Commit

Permalink
Fix Warning in yrewrite.php (#567)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrant88 authored Nov 25, 2024
1 parent 7a26c76 commit 57d8bc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/yrewrite/yrewrite.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public static function prepare()
{
if (rex::isFrontend() && 'get' === rex_request_method() && !rex_get('rex-api-call') && $articleId = rex_get('article_id', 'int')) {
$params = $_GET;
$article = rex_article::get((int) $params['article_id'], (int) $params['clang']);
$article = rex_article::get((int) $params['article_id'], (int) $params['clang'] ?: rex_clang::getCurrentId());
if ($article instanceof rex_article) {
unset($params['article_id']);
unset($params['clang']);
Expand Down

0 comments on commit 57d8bc2

Please sign in to comment.