[BUGFIX] Prevent PHP error in DatabaseTreeDataProvider 09/46209/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 14:31:42 +0000 (15:31 +0100)
commit494f6b727a9e9d3a43d4027dabdbc8f2133ce131
tree1c0e292a796cb7c505fa22aa599f74a4a9897147
parentf5afc0af531f07023b0c76f0ad81aec730cfa8a6
[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/46209
Reviewed-by: Sascha Egerer <sascha@sascha-egerer.de>
Tested-by: Sascha Egerer <sascha@sascha-egerer.de>
typo3/sysext/core/Classes/Tree/TableConfiguration/DatabaseTreeDataProvider.php