Skip to content

Commit

Permalink
Fix a warning for unset isActive
Browse files Browse the repository at this point in the history
  • Loading branch information
discordier authored Jul 8, 2024
1 parent b1a43df commit a11f52a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/DCA/ArticleDCA.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,7 @@ public function addArticleTranslations(array $add): array
$articleRow = static::$articleCache[$pageId]['articles'][$intArticlePosition]->row();
$articleRow['language'] = static::$articleCache[$pageId]['rootIdLanguage'];
$articleRow['href'] = Backend::addToUrl('do=article&table=tl_content&id=' . $articleRow['id']);
if (Input::get('id') === $articleRow['id']) {
$articleRow['isActive'] = true;
}
$articleRow['isActive'] = (Input::get('id') === $articleRow['id']);

$articles[] = $articleRow;
}
Expand Down

0 comments on commit a11f52a

Please sign in to comment.