[BUGFIX] Make sure that foreach loops are applied to arrays only 66/55066/6
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:27:22 +0000 (21:27 +0100)
commitadb73680e7b863897bb21efca37a96ed203da17c
tree150e630dfd007ebfb82a078fd79ee8cd188223d6
parentd9f4eb0f3765879b9cf298334a85baed9647501b
[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/55066
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/Form/AbstractNode.php