mirror of https://github.com/MISP/MISP
fix: [internal] Event ID translator
parent
16077d0237
commit
5ec36f8d4b
|
@ -1363,7 +1363,11 @@ class Event extends AppModel
|
|||
if (empty($data)) {
|
||||
return null;
|
||||
}
|
||||
return $data;
|
||||
// Old format used by old MISP version
|
||||
if (isset($data['id'])) {
|
||||
return $data;
|
||||
}
|
||||
return $data[0];
|
||||
}
|
||||
|
||||
public function quickDelete(array $event)
|
||||
|
|
Loading…
Reference in New Issue