Actions
Bug #16014
closedPHP warnings in class.t3lib_tceforms.php
Status:
Closed
Priority:
Could have
Assignee:
Category:
Backend User Interface
Target version:
-
Start date:
2006-04-09
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
If any of flexform fields contain the following:
<meta> </meta>
this will cause the following warning:
Warning: array_unique(): The argument should be an array in /srv/www/typo3_src-4.0/t3lib/class.t3lib_tceforms.php on line 2075
The problem is that META tag here does not have "type=array". Since it is empty, it is treated as a string. Tag was created like this by old versions of TemplaVoila and can appear in hundreds of records (I have over 7000 on one server). Code in TECForms should always check if META is really array.
Attached simple patch fixes this problem.
(issue imported from #M3196)
Files
Actions