[+TASK] Extbase: Fixed a problem where the AbstractController raised an exception...
authorJochen Rau <j.rau@web.de>
Thu, 29 Apr 2010 07:30:33 +0000 (07:30 +0000)
committerJochen Rau <j.rau@web.de>
Thu, 29 Apr 2010 07:30:33 +0000 (07:30 +0000)
typo3/sysext/extbase/Classes/Dispatcher.php

index 365af23..b98120e 100644 (file)
@@ -246,7 +246,7 @@ class Tx_Extbase_Dispatcher {
                $propertyMapper->injectReflectionService(self::$reflectionService);
                $controller->injectPropertyMapper($propertyMapper);
                
-               $controller->injectSettings(!empty(self::$extbaseFrameworkConfiguration['settings']) ? self::$extbaseFrameworkConfiguration['settings'] : array());
+               $controller->injectSettings(is_array(self::$extbaseFrameworkConfiguration['settings']) ? self::$extbaseFrameworkConfiguration['settings'] : array());
 
                $flashMessageContainer = t3lib_div::makeInstance('Tx_Extbase_MVC_Controller_FlashMessages'); // singleton
                $flashMessageContainer->reset();