[BUGFIX] Illegal string offset 'translations' in DatabaseRecordList 79/19779/3
authorPhilipp Gampe <philipp.gampe@typo3.org>
Wed, 10 Apr 2013 15:41:53 +0000 (17:41 +0200)
committerPhilipp Gampe <philipp.gampe@typo3.org>
Sat, 15 Jun 2013 13:33:06 +0000 (15:33 +0200)
commit1ad7632c815e6f2e1a5ffef3cba641c8f9db85d9
tree04b08347a36b81b72effa86575860d644fa85a28
parentb7cc497bc4ce40a743e9e62d1b49fd297159996b
[BUGFIX] Illegal string offset 'translations' in DatabaseRecordList

The return value of TranslationConfigurationProvider->translationInfo
normally is an array, but it is a string in case of an error.
Move the line below the is_array() check, because it is only needed
inside.

Fixes: #47103
Releases: 6.2, 6.1, 6.0, 4.7, 4.5
Change-Id: Ia781eae987d9295bc2b299f83c087669c96dfd00
Reviewed-on: https://review.typo3.org/19779
Reviewed-by: Dmitry Dulepov
Reviewed-by: Alexander Opitz
Reviewed-by: Heiko Kromm
Tested-by: Heiko Kromm
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/backend/Classes/RecordList/AbstractRecordList.php
typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php