[BUGFIX] Illegal string offset 'translations' in DatabaseRecordList 57/21457/2
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 14:12:26 +0000 (16:12 +0200)
commitb46029b02b34a717a7740afbcd71e5187e800f0b
tree914e51293f192c4f8b7fb06ac61fa80b7d35360f
parent55eb3f88d128a3247d57f77c388389ea0a7df531
[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/21457
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
typo3/sysext/backend/Classes/RecordList/AbstractRecordList.php
typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php