[TASK] Superfluous comparison in DatabaseRecordList 36/25736/3
authorWouter Wolters <typo3@wouterwolters.nl>
Thu, 28 Nov 2013 20:37:54 +0000 (21:37 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 7 Jan 2014 23:05:05 +0000 (00:05 +0100)
Fix superfluous comparison against boolean in
DatabaseRecordList::getTable

Change-Id: Icdbf78935da4135a7c6b4902b97c87e7ce658eb8
Resolves: #54049
Releases: 6.2
Reviewed-on: https://review.typo3.org/25736
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php

index 7400212..a9cec31 100644 (file)
@@ -259,7 +259,7 @@ class DatabaseRecordList extends \TYPO3\CMS\Recordlist\RecordList\AbstractDataba
                $titleCol = $GLOBALS['TCA'][$table]['ctrl']['label'];
                $thumbsCol = $GLOBALS['TCA'][$table]['ctrl']['thumbnail'];
                $l10nEnabled = $GLOBALS['TCA'][$table]['ctrl']['languageField'] && $GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField'] && !$GLOBALS['TCA'][$table]['ctrl']['transOrigPointerTable'];
-               $tableCollapsed = !$this->tablesCollapsed[$table] ? FALSE : TRUE;
+               $tableCollapsed = (boolean)$this->tablesCollapsed[$table];
                // prepare space icon
                $this->spaceIcon = IconUtility::getSpriteIcon('empty-empty', array('style' => 'background-position: 0 10px;'));
                // Cleaning rowlist for duplicates and place the $titleCol as the first column always!