mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
fixed minor error array servers pandora_enterprise#8597
This commit is contained in:
parent
d90005d0f5
commit
58221a7c12
@ -258,7 +258,9 @@ $custom_data = get_parameter(
|
|||||||
($filter['custom_data'] ?? '')
|
($filter['custom_data'] ?? '')
|
||||||
);
|
);
|
||||||
|
|
||||||
if (is_metaconsole() === true) {
|
if (is_metaconsole() === true
|
||||||
|
&& is_array($server_id) === false
|
||||||
|
) {
|
||||||
// Connect to node database.
|
// Connect to node database.
|
||||||
$id_node = (int) $server_id;
|
$id_node = (int) $server_id;
|
||||||
if ($id_node !== 0) {
|
if ($id_node !== 0) {
|
||||||
@ -279,7 +281,9 @@ if (empty($text_module) === true && empty($id_agent_module) === false) {
|
|||||||
$text_agent = agents_get_alias(modules_get_agentmodule_agent($id_agent_module));
|
$text_agent = agents_get_alias(modules_get_agentmodule_agent($id_agent_module));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_metaconsole() === true) {
|
if (is_metaconsole() === true
|
||||||
|
&& is_array($server_id) === false
|
||||||
|
) {
|
||||||
// Return to metaconsole database.
|
// Return to metaconsole database.
|
||||||
if ($id_node != 0) {
|
if ($id_node != 0) {
|
||||||
metaconsole_restore_db();
|
metaconsole_restore_db();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user