From 10af15bb665a884636e641b75e5cf19eae153660 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edi=20Modri=C4=87?= Date: Fri, 29 May 2020 16:18:45 +0200 Subject: [PATCH] Fix undefined notice in legacy content mapper --- eZ/Publish/Core/Persistence/Legacy/Content/Mapper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eZ/Publish/Core/Persistence/Legacy/Content/Mapper.php b/eZ/Publish/Core/Persistence/Legacy/Content/Mapper.php index dbff82beae2..8545fcd1157 100644 --- a/eZ/Publish/Core/Persistence/Legacy/Content/Mapper.php +++ b/eZ/Publish/Core/Persistence/Legacy/Content/Mapper.php @@ -361,7 +361,7 @@ public function extractVersionInfoListFromRows(array $rows, array $nameRows) $versionInfo->creationDate = (int)$row['ezcontentobject_version_created']; $versionInfo->modificationDate = (int)$row['ezcontentobject_version_modified']; $versionInfo->status = (int)$row['ezcontentobject_version_status']; - $versionInfo->names = $nameData[$versionId]; + $versionInfo->names = $nameData[$versionId] ?? []; $versionInfoList[$versionId] = $versionInfo; $versionInfo->languageCodes = $this->extractLanguageCodesFromMask( (int)$row['ezcontentobject_version_language_mask'],