Project

General

Profile

Actions

Bug #16014

closed

PHP warnings in class.t3lib_tceforms.php

Added by Dmitry Dulepov over 18 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Could have
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

tceforms_flexforms_meta.txt (739 Bytes) tceforms_flexforms_meta.txt Administrator Admin, 2006-04-09 10:21

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #16100: t3lib_flexformtools errorClosed2006-04-28

Actions
Actions #1

Updated by Pieter over 18 years ago

The fix works fine for me!

Actions

Also available in: Atom PDF