Copy sites with flexible content elements inside crash with fatal error
Line 3319 of /t3lib/class.t3lib_div.php (Rev. 1.84) unsets an array-offset that not necessarily exists, this forces an fatal error that should be prevented with an isset-Condition.
(issue imported from #M1869)
Updated by René Wagner about 15 years ago
I found a bug in PHP that our solution infiltrates. If $dataStruct is a string and not an array, isset() on a nonexistent key returns always true. This is also reported in manual http://de3.php.net/manual/de/function.isset.php. So a check for type array is needed first.
if (is_array($dataStruct) && isset($dataStruct['meta'])) unset($dataStruct['meta']);
should fix this bug. If $dataStruct isn't an array, the isset-Check can be void, so i have choose &&.