[BUGFIX] Extbase produces errors in TYPO3 Log
authorMichael Klapper <development@morphodo.com>
Fri, 9 Mar 2012 13:33:04 +0000 (14:33 +0100)
committerFelix Oertel <typo3@foertel.com>
Fri, 16 Mar 2012 23:07:56 +0000 (00:07 +0100)
Change-Id: I9f50b67db1c6cd27f1e83a3258b679d2258f80eb
Fixes: #34632
Releases: 4.7, 4.8

typo3/sysext/extbase/Classes/MVC/CLI/CommandManager.php
typo3/sysext/extbase/Classes/MVC/CLI/RequestBuilder.php

index e2c058d..10154a7 100644 (file)
@@ -65,7 +65,7 @@ class Tx_Extbase_MVC_CLI_CommandManager implements t3lib_Singleton {
                if ($this->availableCommands === NULL) {
                        $this->availableCommands = array();
 
-                       $commandControllerClassNames = $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'];
+                       $commandControllerClassNames = (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers']) ? $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'] : array());
                        foreach ($commandControllerClassNames as $className) {
                                if (!class_exists($className)) {
                                        continue;
index 6289ba3..705ce86 100644 (file)
@@ -80,7 +80,7 @@ class Tx_Extbase_MVC_CLI_RequestBuilder {
         * @return Tx_Extbase_MVC_CLI_Request The CLI request as an object
         * @author Robert Lemke <robert@typo3.org>
         */
-       public function build($commandLine) {
+       public function build($commandLine = '') {
                $request = $this->objectManager->get('Tx_Extbase_MVC_CLI_Request');
                $request->setControllerObjectName('Tx_Extbase_Command_HelpCommandController');