[BUGFIX] Fix PHP warning in shouldFieldBeOverlaid()
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / Classes / Page / PageRepository.php
index edd94c8..5bfdbd7 100644 (file)
@@ -1373,11 +1373,11 @@ class PageRepository {
                                $checkValue = '';
                        }
 
-                       if (trim($checkValue) === '') {
+                       if ($checkValue === array() || trim($checkValue) === '') {
                                $shouldFieldBeOverlaid = FALSE;
                        }
                }
 
                return $shouldFieldBeOverlaid;
        }
-}
\ No newline at end of file
+}