diff --git a/src/DCA/ArticleDCA.php b/src/DCA/ArticleDCA.php index 3e860b2..dc12536 100644 --- a/src/DCA/ArticleDCA.php +++ b/src/DCA/ArticleDCA.php @@ -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; }