[BUGFIX] Cast config.noPageTitle to int before strict comparison 68/57768/3
authorRichard Haeser <richard@maxserv.com>
Wed, 1 Aug 2018 21:49:10 +0000 (23:49 +0200)
committerBenni Mack <benni@typo3.org>
Wed, 1 Aug 2018 22:01:41 +0000 (00:01 +0200)
Resolves: #85720
Related: #83254
Releases: master
Change-Id: I3183e24e59e38eb7f384deecf2e8227a2c3da6de
Reviewed-on: https://review.typo3.org/57768
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php

index 10de128..5638038 100644 (file)
@@ -3606,7 +3606,7 @@ class TypoScriptFrontendController implements LoggerAwareInterface
         }
 
         // config.noPageTitle = 2 - means do not render the page title
-        if ($this->config['config']['noPageTitle'] === 2) {
+        if ((int)$this->config['config']['noPageTitle'] === 2) {
             $titleTagContent = '';
         }
         if ($titleTagContent !== '') {