Skip to content

Commit

Permalink
[BUGFIX] Check existence to avoid notices
Browse files Browse the repository at this point in the history
Resolves: #469
  • Loading branch information
georgringer authored and achimfritz committed Feb 5, 2024
1 parent 1e05c41 commit 2ef3fd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Tca/ItemProcFunc.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function __construct(ContainerFactory $containerFactory, Registry $tcaReg
public function colPos(array &$parameters): void
{
$row = $parameters['row'];
if ($row['tx_container_parent'] > 0) {
if (($row['tx_container_parent'] ?? 0) > 0) {
try {
$container = $this->containerFactory->buildContainer((int)$row['tx_container_parent']);
$cType = $container->getCType();
Expand Down Expand Up @@ -80,7 +80,7 @@ public function txContainerParent(array &$parameters): void
{
$row = $parameters['row'];
$items = [];
if ($row['tx_container_parent'] > 0) {
if (($row['tx_container_parent'] ?? 0) > 0) {
try {
$container = $this->containerFactory->buildContainer((int)$row['tx_container_parent']);
$cType = $container->getCType();
Expand Down

0 comments on commit 2ef3fd1

Please sign in to comment.