fix: [UI] Undefined index

pull/8705/head
Jakub Onderka 2022-10-25 16:48:25 +02:00
parent c5cecdc6fa
commit 0aefe8c3f2
1 changed files with 1 additions and 0 deletions

View File

@ -1715,6 +1715,7 @@ class AttributesController extends AppController
$cluster = $clusters[$attributeTag['Tag']['id']];
$galaxyId = $cluster['Galaxy']['id'];
$cluster['local'] = $attributeTag['local'] ?? false;
$cluster['attribute_tag_id'] = $attributeTag['id'];
if (isset($attribute['Attribute']['Galaxy'][$galaxyId])) {
unset($cluster['Galaxy']);
$galaxies[$galaxyId]['GalaxyCluster'][] = $cluster;