mirror of https://github.com/MISP/MISP
fix: [sync] Fixed an incorrectly formatted event index output when minimal:1 is passed, breaking the sync pull
- ffspull/3953/head
parent
a56e1b44b5
commit
2ce3bdddbe
|
@ -783,8 +783,8 @@ class EventsController extends AppController
|
|||
} else {
|
||||
foreach ($events as $key => $event) {
|
||||
$events[$key] = $event['Event'];
|
||||
return $this->RestResponse->viewData($events, $this->response->type());
|
||||
}
|
||||
return $this->RestResponse->viewData($events, $this->response->type());
|
||||
}
|
||||
} else {
|
||||
$events = $this->paginate();
|
||||
|
|
Loading…
Reference in New Issue