mirror of https://github.com/MISP/MISP
chg: [internal] Convert array to const
parent
5de4e64bd6
commit
7f16e27b25
|
@ -125,7 +125,7 @@ class Attribute extends AppModel
|
|||
'hostname|port',
|
||||
);
|
||||
|
||||
public $captureFields = array(
|
||||
const CAPTURE_FIELDS = array(
|
||||
'event_id',
|
||||
'category',
|
||||
'type',
|
||||
|
@ -2885,7 +2885,7 @@ class Attribute extends AppModel
|
|||
$attribute['distribution'] = $this->defaultDistribution();
|
||||
}
|
||||
$params = array(
|
||||
'fieldList' => $this->captureFields
|
||||
'fieldList' => self::CAPTURE_FIELDS,
|
||||
);
|
||||
if (!empty($parentEvent)) {
|
||||
$params['parentEvent'] = $parentEvent;
|
||||
|
|
Loading…
Reference in New Issue