mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
IDS, migration to 1.0.2, fix Trying to get property of non-object in....
This commit is contained in:
parent
9f935b533f
commit
c28b7915ee
@ -43,7 +43,9 @@ class M1_0_2 extends BaseModelMigration
|
||||
{
|
||||
$cfgObj = Config::getInstance()->object();
|
||||
$affectedUuids = [];
|
||||
|
||||
if (!isset($cfgObj->OPNsense->IDS->userDefinedRules->rule)) {
|
||||
return;
|
||||
}
|
||||
foreach ($cfgObj->OPNsense->IDS->userDefinedRules->rule as $rule) {
|
||||
if (!empty($rule->geoip) || !empty($rule->geoip_direction)) {
|
||||
$affectedUuids[] = (string)$rule['uuid'];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user