[TYPO3-core] RFC: non-existing or empty <meta> in T3FlexForms may cause errors in tceforms
Franz Holzinger
franz at fholzinger.com
Wed Oct 18 20:26:28 CEST 2006
Hello Dmitry,
when you have had
<meta>
</meta>
in the xml file before then I think the function
t3lib_div::xml2array($xmlData) should already have returned a
$editData['meta'] as an empty array.
And when there is no meta tag at all then an error message should be
shown. Or when does it happen to have a <T3FlexForms> without meta tags?
Greets,
Franz
> --- t3lib/class.t3lib_tceforms.php (revision 1762)
> +++ t3lib/class.t3lib_tceforms.php (working copy)
> @@ -2056,7 +2056,7 @@
> $editData=t3lib_div::xml2array($xmlData);
> if (!is_array($editData)) { // Must be XML parsing error...
> $editData=array();
> - } elseif (isset($editData['meta']) && !is_array($editData['meta'])) {
> + } elseif (!isset($editData['meta']) || !is_array($editData['meta'])) {
> $editData['meta'] = array();
> }
>
More information about the TYPO3-team-core
mailing list