mirror of https://github.com/MISP/MISP
fix: [attribute:first_seen/last_seen] First seen value can be equal to the last_seen value.
Fix #7404pull/7420/head
parent
bd84a45b02
commit
78d6c5ed1c
|
@ -732,7 +732,7 @@ class Attribute extends AppModel
|
|||
'first_seen' => $this->data['Attribute']['first_seen'],
|
||||
'last_seen' => $ls
|
||||
]], 'Attribute');
|
||||
if ($converted['Attribute']['first_seen'] >= $converted['Attribute']['last_seen']) {
|
||||
if ($converted['Attribute']['first_seen'] > $converted['Attribute']['last_seen']) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
|
|
@ -200,7 +200,7 @@ class MispObject extends AppModel
|
|||
'first_seen' => $this->data['Object']['first_seen'],
|
||||
'last_seen' => $ls
|
||||
]], 'Object');
|
||||
if ($converted['Object']['first_seen'] >= $converted['Object']['last_seen']) {
|
||||
if ($converted['Object']['first_seen'] > $converted['Object']['last_seen']) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
|
|
@ -468,7 +468,7 @@ class ShadowAttribute extends AppModel
|
|||
'first_seen' => $this->data['ShadowAttribute']['first_seen'],
|
||||
'last_seen' => $ls
|
||||
]], 'ShadowAttribute');
|
||||
if ($converted['ShadowAttribute']['first_seen'] >= $converted['ShadowAttribute']['last_seen']) {
|
||||
if ($converted['ShadowAttribute']['first_seen'] > $converted['ShadowAttribute']['last_seen']) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue