From a11f52a2eb1d9ecd1407e142514819bd2b9fa373 Mon Sep 17 00:00:00 2001 From: Christian Schiffler Date: Mon, 8 Jul 2024 19:15:04 +0200 Subject: [PATCH] Fix a warning for unset isActive --- src/DCA/ArticleDCA.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; }