mirror of https://github.com/MISP/MISP
fix: Fixed a bug where /events/uuid would return the incorrect event.
parent
360b2df9bc
commit
5d2c8822ad
|
@ -902,7 +902,7 @@ class EventsController extends AppController {
|
|||
$this->Event->recursive = -1;
|
||||
$temp = $this->Event->find('first', array(
|
||||
'recursive' => -1,
|
||||
'conditons' => array('Event.uuid' => $id),
|
||||
'conditions' => array('Event.uuid' => $id),
|
||||
'fields' => array('Event.id', 'Event.uuid')
|
||||
));
|
||||
if ($temp == null) throw new NotFoundException('Invalid event');
|
||||
|
|
Loading…
Reference in New Issue