[BUGFIX] Nested flexforms no longer throw exception
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Database / ReferenceIndex.php
index 7252247..3620d40 100644 (file)
@@ -510,7 +510,7 @@ class ReferenceIndex {
                        $this->temp_flexRelations['db'][$structurePath] = $resultsFromDatabase;
                }
                // Soft References:
-               if (strlen($dataValue) && ($softRefs = BackendUtility::explodeSoftRefParserList($dsConf['softref']))) {
+               if ((is_array($dataValue) || strlen($dataValue)) && $softRefs = BackendUtility::explodeSoftRefParserList($dsConf['softref'])) {
                        $softRefValue = $dataValue;
                        foreach ($softRefs as $spKey => $spParams) {
                                $softRefObj = BackendUtility::softRefParserObj($spKey);