diff --git a/Classes/Service/BackendServices.php b/Classes/Service/BackendServices.php index d10307340c8728f35da9b03198b57eb1abf56d85..78a831ace28a89c49e152e10b03a9892e672f1b5 100644 --- a/Classes/Service/BackendServices.php +++ b/Classes/Service/BackendServices.php @@ -109,11 +109,16 @@ class BackendServices extends AbstractServices { $result = FALSE; if (in_array($table, VisibilityService::getSupportedTables(), TRUE)) { - $tanslationIdField = $GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField']; - if ($tanslationIdField !== '') { + $translationIdField = $GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField']; + if ($translationIdField !== '') { // if the field which points to the original of the translation is // not 0 a translation exists and we have an overlay record - $result = $row[$tanslationIdField] !== 0; + if (is_array($row[$translationIdField])) { + // somehow the sys_language_uid field could contain 0 => 0 + $result = (int) $row[$translationIdField][0] !== 0; + } else { + $result = (int) $row[$translationIdField] !== 0; + } } }