mirror of https://github.com/MISP/MISP
fix: [adminSetting] Avoid trying to create new entries if previous save failed
parent
9d9ee3dbe7
commit
67971f532b
|
@ -27,8 +27,6 @@ class AdminSetting extends AppModel
|
||||||
if ($this->save($setting_object)) {
|
if ($this->save($setting_object)) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
$this->create();
|
|
||||||
$this->save($setting_object);
|
|
||||||
return $this->validationErrors;
|
return $this->validationErrors;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue