mirror of https://github.com/MISP/MISP
fix: [internal] Remove warning when modules are not reachable
parent
1be6225494
commit
dc3651709e
|
@ -289,7 +289,7 @@ class Module extends AppModel
|
|||
{
|
||||
$modules = $this->getModules($moduleFamily);
|
||||
$result = array();
|
||||
if (!empty($modules)) {
|
||||
if (is_array($modules)) {
|
||||
foreach ($modules as $module) {
|
||||
if (array_intersect($this->__validTypes[$moduleFamily], $module['meta']['module-type'])) {
|
||||
$moduleSettings = [
|
||||
|
|
Loading…
Reference in New Issue