[TYPO3-core] RFC: #10045 BUG missleading Errormessage with emtpy COA
Ingo Schmitt
spam at marketing-factory.de
Fri Jan 2 17:43:08 CET 2009
This is an SVN patch request.
Type: Bugfix
Bugtracker references:
http://bugs.typo3.org/view.php?id=10045
Branches:
TYPO3_4-2 and trunk.
Problem:
When having empty COA's in your TS, you get a misleading PHP Error message:
Catchable fatal error: Argument 1 passed to tslib_cObj::includeLibs()
must be an array
This happens, because of the type-cast in tslib_cObj::includeLibs().
Since tslib_cObj::COBJ_ARRAY is not checking, if $conf is declared.
Solution:
Check for if $conf is an array, and if not issue a warning at the TS log.
Regards
Ingo
Mit freundlichen Gruessen
--
Ingo Schmitt mailto:is at marketing-factory.de
Marketing Factory Consulting GmbH http://typo3.marketing-factory.de/
Content Management mit Typo3: Beratung - Schulung - Realisierung
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: emptyCOA.patch
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090102/0e2bb180/attachment.txt
More information about the TYPO3-team-core
mailing list