Skip to content

Commit

Permalink
[BUGFIX] Fix notice in InlineElementHook
Browse files Browse the repository at this point in the history
  • Loading branch information
georgringer authored Aug 22, 2023
1 parent 595095a commit 87b4bee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Hooks/InlineElementHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function renderForeignRecordHeaderControl_postProcess(
$isVirtual,
array &$controlItems
) {
$previewSetting = (int)(is_array($childRecord['showinpreview'] ?? false) ? $childRecord['showinpreview'][0] : ($childRecord['showinpreview'] ?? 0));
$previewSetting = (int)(is_array($childRecord['showinpreview'] ?? false) ?? $childRecord['showinpreview'][0] ?? $childRecord['showinpreview'] ?? 0);
if ($foreignTable === 'sys_file_reference' && $previewSetting > 0) {
$ll = 'LLL:EXT:news/Resources/Private/Language/locallang_db.xlf:';

Expand Down

0 comments on commit 87b4bee

Please sign in to comment.