mirror of https://github.com/MISP/MISP
fix: [Object:DeltaMerge] Gracefully catch if *_seen field is not present
in the pushed Objectpull/5462/head
parent
a2127bea83
commit
aabc568b90
|
@ -545,6 +545,12 @@ class MispObject extends AppModel
|
|||
$tmpfile->delete();
|
||||
$tmpfile->close();
|
||||
}
|
||||
if (!isset($attributes['Attribute'][$k]['first_seen'])) {
|
||||
$attributes['Attribute'][$k]['first_seen'] = null;
|
||||
}
|
||||
if (!isset($attributes['Attribute'][$k]['last_seen'])) {
|
||||
$attributes['Attribute'][$k]['last_seen'] = null;
|
||||
}
|
||||
unset($attributes['Attribute'][$k]['save']);
|
||||
}
|
||||
return $attributes;
|
||||
|
|
Loading…
Reference in New Issue