[+BUGFIX] Extbase (Dispatcher): Fixed a regression which was introduced in #4833...
authorSebastian Kurfürst <sebastian@typo3.org>
Thu, 5 Nov 2009 08:35:44 +0000 (08:35 +0000)
committerSebastian Kurfürst <sebastian@typo3.org>
Thu, 5 Nov 2009 08:35:44 +0000 (08:35 +0000)
typo3/sysext/extbase/Classes/Dispatcher.php

index 2e03ec0..c3456de 100644 (file)
@@ -105,7 +105,10 @@ class Tx_Extbase_Dispatcher {
                $requestBuilder = t3lib_div::makeInstance('Tx_Extbase_MVC_Web_RequestBuilder');
                $request = $requestBuilder->initialize(self::$extbaseFrameworkConfiguration);
                $request = $requestBuilder->build();
-               $request->setContentObjectData($this->cObj->data);
+               if (isset($this->cObj->data) && is_array($this->cObj->data)) {
+                       // we need to check the above conditions as cObj is not available in Backend.
+                       $request->setContentObjectData($this->cObj->data);
+               }
                $response = t3lib_div::makeInstance('Tx_Extbase_MVC_Web_Response');
 
                // Request hash service