mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
fix error sql service pandora_enterprise#9018
This commit is contained in:
parent
aae68408a1
commit
71fcb4fb9f
@ -704,6 +704,8 @@ class Module extends Entity
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$old = $this->alertTemplatesAssigned();
|
||||||
|
if (in_array($id_alert_template, $old) === false) {
|
||||||
return (bool) \db_process_sql_insert(
|
return (bool) \db_process_sql_insert(
|
||||||
'talert_template_modules',
|
'talert_template_modules',
|
||||||
[
|
[
|
||||||
@ -712,6 +714,9 @@ class Module extends Entity
|
|||||||
'last_reference' => time(),
|
'last_reference' => time(),
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user