diff --git a/typo3/sysext/backend/Classes/Controller/Page/TreeController.php b/typo3/sysext/backend/Classes/Controller/Page/TreeController.php index 6b0762c8512713bcbe327b6c459dc0b680a4fb4d..f95eb9f49c58375b1d34290babc54f6a30c092f6 100644 --- a/typo3/sysext/backend/Classes/Controller/Page/TreeController.php +++ b/typo3/sysext/backend/Classes/Controller/Page/TreeController.php @@ -356,7 +356,7 @@ class TreeController $entryPointRootLine = $pageRepository->getRootLine($entryPoint); foreach ($entryPointRootLine as $rootLineEntry) { $parentUid = $rootLineEntry['uid']; - if ($this->backgroundColors[$parentUid] !== null && $this->backgroundColors[$entryPoint] === null) { + if (!empty($this->backgroundColors[$parentUid]) && empty($this->backgroundColors[$entryPoint])) { $this->backgroundColors[$entryPoint] = $this->backgroundColors[$parentUid]; } }