mirror of https://github.com/MISP/MISP
fix: Ensure parameter is set before checking remove_missing_tags without coalescing op
parent
52cd4e04a6
commit
24c137fa41
|
@ -3038,7 +3038,7 @@ class Attribute extends AppModel
|
|||
A solution to still keep the behavior for previous instance could be to not soft-delete the Tag if the remote instance
|
||||
has a version below x
|
||||
*/
|
||||
if (isset($server) && $server['Server']['remove_missing_tags'] ?? false) {
|
||||
if (isset($server) && isset($server['Server']['remove_missing_tags']) && $server['Server']['remove_missing_tags']) {
|
||||
$this->AttributeTag->pruneOutdatedAttributeTagsFromSync(isset($attribute['Tag']) ? $attribute['Tag'] : array(), $existingAttribute['AttributeTag']);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue