[BUGFIX] Remove empty values in pageOverlayFields 92/33192/2
authorNils Blattner <nb@cabag.ch>
Tue, 7 Oct 2014 08:47:58 +0000 (10:47 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 7 Oct 2014 18:14:53 +0000 (20:14 +0200)
$GLOBALS['TYPO3_CONF_VARS']['FE']['pageOverlayFields'] might contain
empty values. Remove those.

Resolves: #62068
Releases: master, 6.2
Change-Id: I79337d9d8dca17fc840a331c8839147054d1b3f0
Reviewed-on: http://review.typo3.org/33192
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/frontend/Classes/Page/PageRepository.php

index f40d480..5ded340 100644 (file)
@@ -341,7 +341,7 @@ class PageRepository {
                }
                // If language UID is different from zero, do overlay:
                if ($lUid) {
-                       $fieldArr = GeneralUtility::trimExplode(',', $GLOBALS['TYPO3_CONF_VARS']['FE']['pageOverlayFields']);
+                       $fieldArr = GeneralUtility::trimExplode(',', $GLOBALS['TYPO3_CONF_VARS']['FE']['pageOverlayFields'], TRUE);
                        if (is_array($pageInput)) {
                                // Was the whole record
                                $page_id = $pageInput['uid'];