[TYPO3-core] RFC: Bug #6114: t3lib_extMgm::addToAllTCATypes ignores type 0

Ingmar Schlecht ingmar at typo3.org
Tue Dec 4 21:08:28 CET 2007


Hi Jeff,

thanks for the bugfixs!

Yet this line doesn't look right to me:

if ($specificTypesList == '' || ...

Wouldn't that eval to true for $specificTypesList = 0 as well? Maybe not
for the string $specificTypesList = '0', but still for the integer.

Try if this works:
if (strcmp($specificTypesList, '') || ...)

cheers
Ingmar


Jeff Segars schrieb:
> Hey guys,
> 
> This is a SVN patch request.
> 
> Type: Bugfix
> 
> Branches: 4.1, Trunk
> 
> Bugtracker Reference: http://bugs.typo3.org/view.php?id=6114
> 
> Problem: t3lib_extMgm::addToAllTCATypes ignores type 0 if it is the only
> type specified.
> 
> Solution: Change condition when adding type from "!$specificTypesList"
> "$specificTypesList == ''."
> 
> Thanks,
> jeff
> 


-- 
Ingmar Schlecht
TYPO3 Association Active Member


More information about the TYPO3-team-core mailing list