Skip to content

Commit

Permalink
Merge pull request #3463 from nextcloud/enh/noid/fix-display-of-conta…
Browse files Browse the repository at this point in the history
…iners
  • Loading branch information
szaimen authored Oct 2, 2023
2 parents b651c01 + 5158081 commit 49aca0d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion php/src/ContainerDefinitionFetcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
}
}
}

Expand Down

0 comments on commit 49aca0d

Please sign in to comment.