Skip to content

Commit

Permalink
IBX-6484: Added check if $row is empty to prevent error
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszdebinski committed Sep 7, 2023
1 parent a53f741 commit c6e060b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions eZ/Publish/Core/Persistence/Legacy/Content/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,11 @@ static function ($lang) use ($languageCode) {
public function loadVersionInfoList(array $contentIds): array
{
$rows = $this->contentGateway->loadVersionInfoList($contentIds);

if (empty($rows)) {
return [];
}

$mappedRows = array_map(
static function (array $row): array {
return [
Expand Down

0 comments on commit c6e060b

Please sign in to comment.