Project

General

Profile

Bug #93881

Updated by Christoph Lehmann over 3 years ago

In \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer::getLanguageRestriction() 

 <pre> 
 if (isset($conf['includeRecordsWithoutDefaultTranslation']) || $conf['includeRecordsWithoutDefaultTranslation.']) { 
     $includeRecordsWithoutDefaultTranslation = isset($conf['includeRecordsWithoutDefaultTranslation.']) ? 
         $this->stdWrap($conf['includeRecordsWithoutDefaultTranslation'], $conf['includeRecordsWithoutDefaultTranslation.']) : $conf['includeRecordsWithoutDefaultTranslation']; 
     $includeRecordsWithoutDefaultTranslation = trim($includeRecordsWithoutDefaultTranslation) !== ''; 
 } else { 
     // Option was not explicitly set, check what's in for the language overlay type. 
     $includeRecordsWithoutDefaultTranslation = $languageAspect->getOverlayType() === $languageAspect::OVERLAYS_ON_WITH_FLOATING; 
 } 
 </pre> 

 If i see it correct the line 

 <pre> 
 $includeRecordsWithoutDefaultTranslation = trim($includeRecordsWithoutDefaultTranslation) !== ''; 
 </pre> 

 should be a type cast to bool or should further check if the value is 0 

Back