Skip to content

Commit

Permalink
CS
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Auswöger <martin@auswoeger.com>
  • Loading branch information
Toflar and ausi committed Sep 13, 2021
1 parent 781e4d1 commit eb61b6a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions core-bundle/src/Resources/contao/library/Contao/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -582,12 +582,10 @@ public function getParentRecords($intId, $strTable, bool $skipId = false)

if ($skipId)
{
$ids = array_flip($ids);
unset($ids[$intId]);
$ids = array_values(array_flip($ids));
unset($ids[array_search($intId, $ids)]);
}

return $ids;
return array_values($ids);
}

/**
Expand Down

0 comments on commit eb61b6a

Please sign in to comment.