[BUGFIX] Prevent PHP error in DatabaseTreeDataProvider 17/46117/2
authorWouter Wolters <typo3@wouterwolters.nl>
Wed, 20 Jan 2016 20:12:09 +0000 (21:12 +0100)
committerSascha Egerer <sascha@sascha-egerer.de>
Sun, 24 Jan 2016 11:36:35 +0000 (12:36 +0100)
commite2c0c144c419d50f10bef2d54f642e0102ca87bb
treef23d003afd2c6acb7112ddfd8679dd02d29f54cd
parent241497a2ab5e34501ead41106e021de0145b8332
[BUGFIX] Prevent PHP error in DatabaseTreeDataProvider

Check if $records is not empty before using in the foreach loop.

Resolves: #72850
Releases: master,7.6
Change-Id: I015087777117a2a355532ecf8204c0e08338e77c
Reviewed-on: https://review.typo3.org/46117
Reviewed-by: Richard Haeser <richardhaeser@gmail.com>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Frank Nägler <frank.naegler@typo3.org>
Tested-by: Frank Nägler <frank.naegler@typo3.org>
typo3/sysext/core/Classes/Tree/TableConfiguration/DatabaseTreeDataProvider.php