[TYPO3-core] RFC: Bug #7203: Hook cObjTypeAndClassDefault in tslib_content somtimes fails

Stefan Geith typo3dev2008.nospam1 at geithware.de
Fri Jan 18 13:30:56 CET 2008


This is a SVN patch request.

Problem:
Hook cObjTypeAndClassDefault in tslib_content is sometimes called, even 
if $conf-Array is empty or $name is empty.
This causes an error if you use this hook, because the interface needs 
$conf to be an array.
This hook was introduced by patch from 
http://bugs.typo3.org/view.php?id=5536

Solution:
Solution: check on (is_array($conf) && $name)

Bugtracker references:
http://bugs.typo3.org/view.php?id=7203

Branches: Trunk


Stefan Geith


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0007203_tslib_content_hook.patch
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080118/39a42c27/attachment.txt 


More information about the TYPO3-team-core mailing list