[TASK] Do not output empty inDocStyles 13/34513/2
authorWouter Wolters <typo3@wouterwolters.nl>
Sun, 23 Nov 2014 21:18:26 +0000 (22:18 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Sun, 23 Nov 2014 21:32:31 +0000 (22:32 +0100)
If inDocStyles is empty, no output is needed.

Resolves: #63274
Releases: master
Change-Id: I886d6480231342ca6e505fabc801b7df6d899d53
Reviewed-on: http://review.typo3.org/34513
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
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);
                }