[BUGFIX] Illegal string offset ┬┤showitem┬┤ in ExtensionManagementUtility 88/39988/2
authorWouter Wolters <typo3@wouterwolters.nl>
Wed, 3 Jun 2015 18:57:06 +0000 (20:57 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 5 Jun 2015 15:19:51 +0000 (17:19 +0200)
Resolves: #67285
Releases: master,6.2
Change-Id: I1e02ef7af6b8a4ee8301fa8b2fdaaf3928316815
Reviewed-on: http://review.typo3.org/39988
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php
typo3/sysext/core/Tests/Unit/Category/CategoryRegistryTest.php

index 606a282..c4b9eb7 100644 (file)
@@ -285,7 +285,7 @@ class ExtensionManagementUtility {
                                continue;
                        }
                        // skip if fields were already added
-                       if (strpos($typeDetails['showitem'], $newFieldsString) !== FALSE) {
+                       if (!isset($typeDetails['showitem']) || strpos($typeDetails['showitem'], $newFieldsString) !== FALSE) {
                                continue;
                        }
 
index 47c61cc..cd96bb8 100644 (file)
@@ -48,7 +48,9 @@ class CategoryRegistryTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
                                'ctrl' => array(),
                                'columns' => array(),
                                'types' => array(
-                                       '1' => array()
+                                       '1' => array(
+                                               'showitem' => ''
+                                       )
                                ),
                        );
                }