[BUGFIX] Allow typesList=0 when using makeCategorizable 86/48386/2
authorWouter Wolters <typo3@wouterwolters.nl>
Sat, 28 May 2016 15:41:50 +0000 (17:41 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 29 May 2016 12:32:12 +0000 (14:32 +0200)
commita6da70df02248224265ea62f3c8f08a1ee521ccd
treee6b973c5e4fba45c1d1091ae5494ad40f5c15a76
parente23feb184848bce0cf84be66d49b87d6966f9508
[BUGFIX] Allow typesList=0 when using makeCategorizable

Due to a wrong condition which is using !empty() typesList=0 is not possible.
Change the condition to check this the correct way.

Resolves: #76141
Releases: master, 7.6
Change-Id: Ieca9bd2a59e42d112c4eb8058bd76da8d73b86ab
Reviewed-on: https://review.typo3.org/48386
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/Category/CategoryRegistry.php
typo3/sysext/core/Tests/Unit/Category/CategoryRegistryTest.php