[BUGFIX] Fix JS concat if first file is forced on top 93/27793/6
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:11:50 +0000 (21:11 +0100)
commitbfd71d581e7c4ff92c37da66e27c843aa2a79ac8
tree4766ab11fb971b8ea64ba4b044b37d27abd7638d
parentbe558f4f826e7cde889fa3cc4f72e97626f0075d
[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: I23af7862263fb0685032c34ded8736df87ddeb99
Reviewed-on: https://review.typo3.org/27793
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Benjamin Mack
Tested-by: Benjamin Mack
typo3/sysext/core/Classes/Resource/ResourceCompressor.php