Project

General

Profile

Actions

Bug #18019

closed

Hook cObjTypeAndClassDefault in tslib_content somtimes fails

Added by Stefan Geith almost 17 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Communication
Target version:
-
Start date:
2008-01-18
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

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: check on (is_array($conf) && $name)
(issue imported from #M7203)


Files

0007203_tslib_content_hook.patch (748 Bytes) 0007203_tslib_content_hook.patch Administrator Admin, 2008-01-18 13:27
0007203c_tslib_content_hook.patch (1.27 KB) 0007203c_tslib_content_hook.patch Administrator Admin, 2008-01-22 09:10
Actions

Also available in: Atom PDF