[BUGFIX] Check whether contentElementCache for language and colPos is valid 38/47038/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:39 +0000 (11:40 +0100)
commita234b8971ccf5845524cf6daf0feb0a1738ac438
treebee69ecf7ed6b8bee0fa3e4b426121772453d069
parent6e855aa751ed5299143dac4cde4031c52a99e97f
[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/47038
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/View/PageLayoutView.php