[+BUGFIX] Extbase (Persistence): Fixed generation of recursive storage pid list from...
authorJochen Rau <j.rau@web.de>
Thu, 8 Apr 2010 09:23:04 +0000 (09:23 +0000)
committerJochen Rau <j.rau@web.de>
Thu, 8 Apr 2010 09:23:04 +0000 (09:23 +0000)
typo3/sysext/extbase/Classes/Configuration/FrontendConfigurationManager.php

index cc11351..68e42f7 100644 (file)
@@ -88,13 +88,15 @@ class Tx_Extbase_Configuration_FrontendConfigurationManager extends Tx_Extbase_C
                                        $list[] = trim($this->contentObject->getTreeList($pid, $this->contentObject->data['recursive']), ',');
                                }
                        }
+                       if (count($list) > 0) {
+                               $pages = $pages . ',' . implode(',', $list);
+                       }
                        $frameworkConfiguration = t3lib_div::array_merge_recursive_overrule($frameworkConfiguration, array(
                                'persistence' => array(
-                                       'storagePid' => $pages . implode(',', $list)
+                                       'storagePid' => $pages
                                )
                        ));
                }
-
                return $frameworkConfiguration;
        }