[BUGFIX] PHP warning on each Extension Manager invocation
authorDmitry Dulepov <dmitry@typo3.org>
Thu, 6 Oct 2011 07:48:04 +0000 (10:48 +0300)
committerSteffen Gebert <steffen.gebert@typo3.org>
Fri, 7 Oct 2011 17:56:07 +0000 (19:56 +0200)
Extension manager produces a PHP warning on each invocation due to
incorrect parameters passed to t3lib_div::trimExplode().

Change-Id: I7f33221cb9068b6d914951f045ce4dc1e0bcaa37
Resolves: #30598
Releases: 4.6,4.5
Reviewed-on: http://review.typo3.org/5621
Reviewed-by: Steffen Gebert
Tested-by: Steffen Gebert
typo3/sysext/em/classes/class.tx_em_extensionmanager.php

index c7a2120..71cc57d 100644 (file)
@@ -138,7 +138,7 @@ class tx_em_ExtensionManager {
                if (!is_array($globalSettings)) {
                        $globalSettings = array(
                                'displayMyExtensions' => 0,
-                               'selectedLanguages' => array(),
+                               'selectedLanguages' => '',
                                'inlineToWindow' => 1,
                        );
                }