Issue Bug Closed

#32278TSFE additionalJavaScript not set -> warning

Razakanirina 12/02/11, 22:40 updated 10/02/18, 12:19

Description

Hello,

When $GLOBAL[‘TSFE’]->additionalJavaScript is not set, the following code return a warning

class tslib_fe {
….
03324 ‘.implode(LF,$this->additionalJavaScript).‘
….
}

Obtained warning:

Core: Error handler (FE): PHP Warning: implode(): Invalid arguments passed in /usr/local/src/typo3/typo3_src-4.5.8/typo3/sysext/cms/tslib/class.tslib_fe.php

I think that we should protect additionalJavaScript attribute before using it with implode function.

Best regards.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.