[TASK] Do not output empty inDocStyles
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Template / DocumentTemplate.php
index ded79e5..a02a43b 100644 (file)
@@ -1115,7 +1115,11 @@ function jumpToUrl(URL) {
                if ($this->styleSheetFile2) {
                        $this->pageRenderer->addCssFile($this->backPath . $this->styleSheetFile2);
                }
-               $this->pageRenderer->addCssInlineBlock('inDocStyles', $inDocStyles . LF . '/*###POSTCSSMARKER###*/');
+
+               if ($inDocStyles !== '') {
+                       $this->pageRenderer->addCssInlineBlock('inDocStyles', $inDocStyles . LF . '/*###POSTCSSMARKER###*/');
+               }
+
                if ($this->styleSheetFile_post) {
                        $this->pageRenderer->addCssFile($this->backPath . $this->styleSheetFile_post);
                }