[BUGFIX] Do not add category to empty table names 38/20938/5
authorAlexander Opitz <opitz.alexander@googlemail.com>
Tue, 21 May 2013 07:42:34 +0000 (09:42 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Wed, 12 Jun 2013 18:07:13 +0000 (20:07 +0200)
commitf5074a57c901da28a28670349ce7d3472093a117
tree59b9f9b0e00fc7045dbbca2fb4bf5ba603d54bbe
parent1af5a134447636b091bd821d74d71e505fe66e5a
[BUGFIX] Do not add category to empty table names

If the $GLOBALS['TYPO3_CONF_VARS']['SYS']['defaultCategorizedTables']
is empty or you have empty strings between commas then we try to add
empty tablenames to the table definitions.

This is fixed by setting removeEmptyValues to true in trimExplode
and adding a RuntimeException to the add function to prevent
others (extensions) breaking the functionality.

Resolves: #48381
Releases: 6.2, 6.1
Change-Id: I4a8d43a0ff75da298ace4f1d33a5dcf2d2ac569f
Reviewed-on: https://review.typo3.org/20938
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Peter Niederlag
Tested-by: Peter Niederlag
typo3/sysext/core/Classes/Category/CategoryRegistry.php
typo3/sysext/core/Tests/Unit/Category/CategoryRegistryTest.php