[TYPO3-core] RFC #15490: Throw exception instead of dying in enableFields() function

Steffen Gebert steffen at steffen-gebert.de
Sun Sep 5 22:43:22 CEST 2010


Hi!

This is a SVN patch request.

Type: Bugfix

Bugtracker reference:
http://bugs.typo3.org/view.php?id=15490

Branches:
trunk

Problem:
When you call
 > tslib_cObj::enableFields($table);
with an unknown table, TYPO3 dies with the following error message:
 > NO entry in the $TCA-array for the table "blabla". This means that
 > the function enableFields() is called with an invalid table name as
 > argument.

Solution:
Instead of calling die() an Exception should be thrown. The backtrace 
can give useful information, where the function is called.

Kind regards
Steffen

-- 
Steffen Gebert
TYPO3 Core Team Member
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 15490.diff
Type: text/x-diff
Size: 626 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100905/945ab038/attachment.diff>


More information about the TYPO3-team-core mailing list