Project

General

Profile

Actions

Bug #32278

closed

TSFE additionalJavaScript not set -> warning

Added by Razakanirina over 12 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-12-02
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.

Actions

Also available in: Atom PDF