[BUGFIX] Make sure that foreach loops are applied to arrays only 85/55085/2
authorWolfgang Klinger <wolfgang@wazum.com>
Thu, 14 Dec 2017 10:33:53 +0000 (11:33 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 14 Dec 2017 20:41:29 +0000 (21:41 +0100)
commit07bfe639cbd33396e036be890f84c3ff64fa2ffd
tree58c44a3b01d8748bb9e12f37759776f5669ca2b7
parent5d192072cfe183fbd0b22950d865e4fe2c8f3bbd
[BUGFIX] Make sure that foreach loops are applied to arrays only

Fix some foreach loops so as not to run into potentially empty elements.
Use the ?? operator to accomplish that.

Change-Id: Id6306cea0546dfd4a20ba98c170335966cc2ae40
Resolves: #83322
Releases: master, 8.7
Reviewed-on: https://review.typo3.org/55085
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/Form/AbstractNode.php