File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -25,17 +25,14 @@ public function processDatamap_beforeStart(DataHandler $dataHandler): void
2525
2626 $ columnConfig = $ GLOBALS ['TCA ' ][$ table ]['columns ' ][$ column ];
2727
28- if (
29- isset ($ columnConfig ['config ' ]['behaviour ' ])
28+ if (isset ($ columnConfig ['config ' ]['behaviour ' ])
3029 && is_array ($ columnConfig ['config ' ]['behaviour ' ])
3130 && isset ($ columnConfig ['config ' ]['behaviour ' ]['allowLanguageSynchronization ' ])
3231 && (bool )$ columnConfig ['config ' ]['behaviour ' ]['allowLanguageSynchronization ' ] === true
3332 ) {
34- if (isset ($ columnConfig ['l10n_mode ' ]) && $ columnConfig ['l10n_mode ' ] == 'prefixLangTitle ' ) {
35- $ l10nState [$ column ] = 'custom ' ;
36- } else {
37- $ l10nState [$ column ] = 'parent ' ;
38- }
33+ $ l10nState [$ column ] = (($ columnConfig ['l10n_mode ' ] ?? '' ) === 'prefixLangTitle ' )
34+ ? 'custom '
35+ : 'parent ' ;
3936 }
4037 }
4138 if (!empty ($ l10nState )) {
You can’t perform that action at this time.
0 commit comments