[BUGFIX] Fix null coalesce evalutation in PageLayoutView::getLocalizedPageTitle() 00/60400/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Fri, 5 Apr 2019 14:42:53 +0000 (16:42 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Fri, 5 Apr 2019 17:12:58 +0000 (19:12 +0200)
This commit fixes a usage of the null coalesce operator within a condition.

Resolves: #88092
Related: #84375
Releases: master, 9.5
Change-Id: Ic34fb492e66eb224d0e617405e8ae2be69a16aa4
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/60400
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Reviewed-by: Mona Muzaffar <mona.muzaffar@gmx.de>
Reviewed-by: André Schließer <andy.schliesser@gmail.com>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Mona Muzaffar <mona.muzaffar@gmx.de>
Tested-by: André Schließer <andy.schliesser@gmail.com>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/backend/Classes/View/PageLayoutView.php

index 538ad39..cf87a95 100644 (file)
@@ -4332,7 +4332,7 @@ class PageLayoutView implements LoggerAwareInterface
      */
     protected function getLocalizedPageTitle(): string
     {
-        if ($this->tt_contentConfig['sys_language_uid'] ?? 0 > 0) {
+        if (($this->tt_contentConfig['sys_language_uid'] ?? 0) > 0) {
             $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)
                 ->getQueryBuilderForTable('pages');
             $queryBuilder->getRestrictions()