Extbase:
authorJochen Rau <j.rau@web.de>
Thu, 30 Apr 2009 09:05:15 +0000 (09:05 +0000)
committerJochen Rau <j.rau@web.de>
Thu, 30 Apr 2009 09:05:15 +0000 (09:05 +0000)
* Fixed an issue where Extbase throws an exception if no TS Setup was defined (reported by Thomas Hempel)

typo3/sysext/extbase/Classes/Configuration/Source/TypoScriptSource.php

index 8f88437..9efb3d0 100644 (file)
@@ -38,7 +38,11 @@ class Tx_Extbase_Configuration_Source_TypoScriptSource implements Tx_Extbase_Con
         */
         public function load($extensionName) {
                $settings = $GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_' . strtolower($extensionName) . '.'];
-               if (is_array($settings)) $settings = $this->postProcessSettings($settings);
+               if (is_array($settings)) {
+                       $settings = $this->postProcessSettings($settings);
+               } else {
+                       $settings = array();
+               }
                return $settings;
        }