[BUGFIX] Correctly check for a key in getPageForRootline 04/56804/3
authorTymoteusz Motylewski <t.motylewski@gmail.com>
Wed, 25 Apr 2018 10:58:02 +0000 (12:58 +0200)
committerBenni Mack <benni@typo3.org>
Thu, 26 Apr 2018 04:23:21 +0000 (06:23 +0200)
Move coalescing operator to inside is_array. It was was introduced
in https://review.typo3.org/#/c/54558/

Releases: master, 8.7
Resolves: #84868
Related: #82921
Change-Id: I54e60cd3fbd2ab36e945cd2e2ed9c6fc02a5bf5a
Reviewed-on: https://review.typo3.org/56804
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Riny van Tiggelen <info@online-gamer.nl>
Reviewed-by: Guido Schmechel <guido.schmechel@brandung.de>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/backend/Classes/Utility/BackendUtility.php

index 7dfce64..af3b6fe 100644 (file)
@@ -440,7 +440,7 @@ class BackendUtility
     {
         static $getPageForRootline_cache = [];
         $ident = $uid . '-' . $clause . '-' . $workspaceOL;
-        if (is_array($getPageForRootline_cache[$ident]) ?? false) {
+        if (is_array($getPageForRootline_cache[$ident] ?? false)) {
             $row = $getPageForRootline_cache[$ident];
         } else {
             $queryBuilder = static::getQueryBuilderForTable('pages');