mirror of
https://github.com/opnsense/core.git
synced 2026-06-08 16:34:24 -04:00
safeguard post as well
This commit is contained in:
parent
438dcd954c
commit
3ce5b08d08
1 changed files with 4 additions and 0 deletions
|
|
@ -47,6 +47,10 @@ class M1_0_0 extends BaseModelMigration
|
|||
|
||||
public function post($model)
|
||||
{
|
||||
if (!$model instanceof SystemHealth) {
|
||||
return;
|
||||
}
|
||||
|
||||
$config = Config::getInstance()->object();
|
||||
if (isset($config?->rrd)) {
|
||||
unset($config->rrd);
|
||||
|
|
|
|||
Loading…
Reference in a new issue