[BUGFIX] Check whether contentElementCache for language and colPos is valid 25/46925/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Fri, 26 Feb 2016 20:13:17 +0000 (21:13 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 4 Mar 2016 10:40:14 +0000 (11:40 +0100)
commit766ebde70c3228d43dad74f5df9070132004d3fa
treed0b222d7dd513bf0bb55cffe24aa6c6d2fe49520
parent6cf56bb19ec709abe65d4c72f89aab5a3a36cea5
[BUGFIX] Check whether contentElementCache for language and colPos is valid

It may happen that ``$this->contentElementCache[$lP][$colPos]`` is either not
an array nor null. Wrap the foreach loop with an if condition to catch possible
errors.

Change-Id: I6394ff0eef28a490a54f54d172c601fa9768eb20
Resolves: #73670
Releases: master, 7.6
Reviewed-on: https://review.typo3.org/46925
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Claus Due <claus@phpmind.net>
Reviewed-by: Dmitry Dulepov <dmitry.dulepov@gmail.com>
Tested-by: Dmitry Dulepov <dmitry.dulepov@gmail.com>
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/View/PageLayoutView.php