fix: [event] Failed merge conflict

pull/6120/head
mokaddem 2020-09-22 13:44:53 +02:00
parent eb84b3344f
commit d3da2caea4
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 9 additions and 11 deletions

View File

@ -7125,7 +7125,6 @@ class Event extends AppModel
}
}
}
<<<<<<< HEAD
/**
* extractAllTagNames Returns all tag names attached to any elements in an event
@ -7137,31 +7136,31 @@ class Event extends AppModel
{
$tags = array();
if (!empty($event['EventTag'])) {
foreach($event['EventTag'] as $eventTag) {
foreach ($event['EventTag'] as $eventTag) {
$tagName = $eventTag['Tag']['name'];
$tags[$tagName] = $tagName;
}
}
if (!empty($event['Attribute'])) {
foreach($event['Attribute'] as $attribute) {
foreach($attribute['AttributeTag'] as $attributeTag) {
foreach ($event['Attribute'] as $attribute) {
foreach ($attribute['AttributeTag'] as $attributeTag) {
$tagName = $attributeTag['Tag']['name'];
$tags[$tagName] = $tagName;
}
}
}
if (!empty($event['ShadowAttribute'])) {
foreach($event['ShadowAttribute'] as $attribute) {
foreach($attribute['AttributeTag'] as $attributeTag) {
foreach ($event['ShadowAttribute'] as $attribute) {
foreach ($attribute['AttributeTag'] as $attributeTag) {
$tagName = $attributeTag['Tag']['name'];
$tags[$tagName] = $tagName;
}
}
}
if (!empty($event['Object'])) {
foreach($event['Object'] as $object) {
foreach($object['Attribute'] as $attribute) {
foreach($attribute['AttributeTag'] as $attributeTag) {
foreach ($event['Object'] as $object) {
foreach ($object['Attribute'] as $attribute) {
foreach ($attribute['AttributeTag'] as $attributeTag) {
$tagName = $attributeTag['Tag']['name'];
$tags[$tagName] = $tagName;
}
@ -7169,7 +7168,7 @@ class Event extends AppModel
}
}
return $tags;
=======
}
public function recoverEvent($id)
{
@ -7199,6 +7198,5 @@ class Event extends AppModel
// default value if no match found
return Configure::read('MISP.email_subject_TLP_string') ?: "tlp:amber";
>>>>>>> origin/2.4
}
}