[Typo3-dev] PHP5 question

Christian Jul Jensen christian at jul.net
Thu Feb 24 21:10:14 CET 2005


"Martin T. Kutschker" <Martin.no5pam.Kutschker at blackbox.n0spam.net> writes:

> Is somethig wrong with this line in PHP5?

Yes, or rather possibly.

> $controlTable->bmTDparams =
>    isset($conf['bm.']['TDParams']) ?
>    $conf['bm.']['TDParams'] :
>    'valign="top"';


if $conf is not an array, you will get the error below. The solution
is to check if $conf is an array first.

> A newbie reported me this error per mail:
> 
> Fatal error: Cannot use string offset as an array in
> /usr/local/src/typo3_src-3.7.0/typo3/sysext/cms/tslib/class.tslib_fe.php
> on line 1328

--
-julle




More information about the TYPO3-dev mailing list