Issue Bug Closed

#23397Throw exception instead of dying in enableFields() function

Steffen Gebert 08/18/10, 14:36 updated 03/29/11, 14:25

Description

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.

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

(issue imported from #M15490)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.