Issue Bug Closed

#16014PHP warnings in class.t3lib_tceforms.php

Dmitry Dulepov 04/09/06, 10:21 updated 08/12/06, 14:14

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)

Reviews 0

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