From 5158081cfcb663ce415d3c76f25f6d5853a99a01 Mon Sep 17 00:00:00 2001 From: Simon L Date: Sun, 1 Oct 2023 12:25:11 +0200 Subject: [PATCH] only add container to apache container list if display_name is set Signed-off-by: Simon L --- php/src/ContainerDefinitionFetcher.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/php/src/ContainerDefinitionFetcher.php b/php/src/ContainerDefinitionFetcher.php index f846a811149..c31760cce23 100644 --- a/php/src/ContainerDefinitionFetcher.php +++ b/php/src/ContainerDefinitionFetcher.php @@ -53,7 +53,9 @@ private function GetDefinition(): array $path = DataConst::GetCommunityContainersDirectory() . '/' . $communityContainer . '/' . $communityContainer . '.json'; $additionalData = json_decode(file_get_contents($path), true); $data = array_merge_recursive($data, $additionalData); - $additionalContainerNames[] = $additionalData['aio_services_v1'][0]['container_name']; + if (isset($additionalData['aio_services_v1'][0]['display_name']) && $additionalData['aio_services_v1'][0]['display_name'] !== '') { + $additionalContainerNames[] = $additionalData['aio_services_v1'][0]['container_name']; + } } }