fix: Ensure parameter is set before checking remove_missing_tags without coalescing op

pull/7493/head
Tom King 2022-04-20 08:33:23 +01:00
parent 52cd4e04a6
commit 24c137fa41
1 changed files with 1 additions and 1 deletions

View File

@ -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']);
}