mirror of https://github.com/MISP/MISP
fix: [cleanup] removed empty if statement
parent
7681cc4759
commit
b65dce32f7
|
@ -3388,9 +3388,7 @@ class Event extends AppModel
|
|||
$i = 0;
|
||||
foreach ($events as $k => $event) {
|
||||
$this->set($event);
|
||||
if ($this->validates()) {
|
||||
// validates
|
||||
} else {
|
||||
if (!$this->validates()) {
|
||||
$errors = $this->validationErrors;
|
||||
$result[$i]['id'] = $event['Event']['id'];
|
||||
$result[$i]['error'] = $errors;
|
||||
|
|
Loading…
Reference in New Issue