fix module name finish % pandora_enterprise#8570
This commit is contained in:
parent
f4ac71eb31
commit
bc9bb070df
|
@ -710,7 +710,7 @@ switch ($activeTab) {
|
|||
$id_module = $agent->searchModules(
|
||||
['nombre' => $mod],
|
||||
1
|
||||
)->id_agente_modulo();
|
||||
)->toArray();
|
||||
|
||||
if (empty($id_module) === true) {
|
||||
continue;
|
||||
|
|
|
@ -578,7 +578,10 @@ class Agent extends Entity
|
|||
} else {
|
||||
// Search in db.
|
||||
$return = Module::search($filter, $limit);
|
||||
if (is_array($return) === false) {
|
||||
|
||||
if (is_array($return) === false
|
||||
&& is_object($return) === false
|
||||
) {
|
||||
return [];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue