Skip to content

Commit

Permalink
[BUGFIX] Fix warning "Undefined array key colPos" (#2156)
Browse files Browse the repository at this point in the history
Co-authored-by: Claus Due <[email protected]>
  • Loading branch information
Apen and NamelessCoder authored Apr 2, 2024
1 parent 066027a commit d6ed733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Integration/Overrides/BackendLayoutView.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ protected function addColPosListLayoutItems($pageId, $items): array
$items = $layout['__items'];
}
if ($this->addingItemsForContent) {
$parentRecordUid = ColumnNumberUtility::calculateParentUid((integer) $this->record['colPos']);
$parentRecordUid = ColumnNumberUtility::calculateParentUid((integer) ($this->record['colPos'] ?? 0));
if ($parentRecordUid > 0) {
$parentRecord = $this->loadRecordFromTable('tt_content', $parentRecordUid);
if (!$parentRecord) {
Expand Down

0 comments on commit d6ed733

Please sign in to comment.