mirror of https://github.com/MISP/MISP
fix: Added a fallback for no active flag being set on sharing group capture
parent
29671a6ac1
commit
3142f05e69
|
@ -63,6 +63,9 @@ class SharingGroup extends AppModel {
|
|||
if (empty($this->data['SharingGroup']['created'])) {
|
||||
$this->data['SharingGroup']['created'] = $date;
|
||||
}
|
||||
if (!isset($this->data['SharingGroup']['active'])) {
|
||||
$this->data['SharingGroup']['active'] = 0;
|
||||
}
|
||||
$this->data['SharingGroup']['modified'] = $date;
|
||||
|
||||
$sameNameSG = $this->find('first', array(
|
||||
|
|
Loading…
Reference in New Issue