Project

General

Profile

Actions

Bug #23397

closed

Throw exception instead of dying in enableFields() function

Added by Steffen Gebert over 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-08-18
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)


Files

15490.diff (626 Bytes) 15490.diff Administrator Admin, 2010-08-18 14:39
ex.diff (663 Bytes) ex.diff Administrator Admin, 2010-09-06 12:31
Actions

Also available in: Atom PDF