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/7405/head
parent
f48eb4131b
commit
25cb3942d7
|
@ -733,7 +733,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;
|
||||
|
|
|
@ -227,7 +227,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;
|
||||
|
|
|
@ -469,7 +469,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