mirror of https://github.com/MISP/MISP
parent
2169fe5717
commit
f9b851f229
|
@ -872,7 +872,7 @@ class MispObject extends AppModel
|
|||
$newAttribute['value'] = $forcedSeenOnElements['last_seen'];
|
||||
}
|
||||
}
|
||||
if (!isset($newAttribute['timestamp'])) {
|
||||
if (!isset($newAttribute['distribution'])) {
|
||||
$newAttribute['distribution'] = Configure::read('MISP.default_attribute_distribution');
|
||||
if ($newAttribute['distribution'] == 'event') {
|
||||
$newAttribute['distribution'] = 5;
|
||||
|
@ -906,7 +906,7 @@ class MispObject extends AppModel
|
|||
$newAttribute['last_seen'] = $object['Object']['last_seen'];
|
||||
$different = true;
|
||||
}
|
||||
if (!isset($newAttribute['timestamp'])) {
|
||||
if (!isset($newAttribute['distribution'])) {
|
||||
$newAttribute['distribution'] = Configure::read('MISP.default_attribute_distribution');
|
||||
if ($newAttribute['distribution'] == 'event') {
|
||||
$newAttribute['distribution'] = 5;
|
||||
|
|
Loading…
Reference in New Issue