[BUGFIX] Fix JS concat if first file is forced on top 18/27818/2
authorBenjamin Kott <info@bk2k.info>
Sun, 23 Feb 2014 12:00:32 +0000 (13:00 +0100)
committerBenjamin Mack <benni@typo3.org>
Mon, 24 Feb 2014 20:15:01 +0000 (21:15 +0100)
commit5da89e21c57af2a43b896296fadf3699ff78fbb2
tree20fa308a0be0ea8e757b893f29d97992b422ed0b
parentc47d8c53a539cc031b7618cd090f0710a52027fb
[BUGFIX] Fix JS concat if first file is forced on top

If a javascript file is forceOnTop the script uses array_unshift()
to put the file at the beginning of the section array. If this is
the first file that got processed, the array does not exist yet,
so the array_unshift function returns NULL and the file
will not added to the array.

The fix properly initalizes the section sub-array.

Resolves: #56242
Releases: 6.2, 6.1
Change-Id: Iadf2b6f2f512929ff5e8598af9972c5337949341
Reviewed-on: https://review.typo3.org/27818
Reviewed-by: Benjamin Mack
Tested-by: Benjamin Mack
typo3/sysext/core/Classes/Resource/ResourceCompressor.php