[TYPO3-ect] div Fatal error: Cannot use string offset as an array
Franz Holzinger
franz at fholzinger.com
Tue Sep 4 08:20:59 CEST 2007
Hello,
when the tx_div_ff::getFFValue has been called and it gives the result
$_flexForm Line 1: no element found
then this function causes a PHP fatal error.
Proposal:
if (is_array($_flexForm)) {
$sheetArray = $_flexForm['data'][$sheet][$lang];
$result = null;
if (is_array($sheetArray)){
$result =
self::getFFValueFromSheetArray($sheetArray,explode('/',$fieldName),$value);
}
} else {
$result = $_flexForm;
}
return $result;
Or maybe a better error message should be returned in an error parameter.
- Franz
More information about the TYPO3-team-extension-coordination
mailing list