diff --git a/code/model/Translatable.php b/code/model/Translatable.php index 9314c9a..05dfd39 100755 --- a/code/model/Translatable.php +++ b/code/model/Translatable.php @@ -1464,7 +1464,8 @@ class Translatable extends DataExtension implements PermissionProvider { foreach ($langlist as $langCode) { if($langCode && isset($allCodes[$langCode])) { if(is_array($allCodes[$langCode])) { - $returnMap[$langCode] = $allCodes[$langCode]['name']; + if(isset($allCodes[$langCode]['name'])) $returnMap[$langCode] = $allCodes[$langCode]['name']; + else $returnMap[$langCode] = $allCodes[$langCode][0]; } else { $returnMap[$langCode] = $allCodes[$langCode]; }