From ae657ee018106361af096002dc6fe85474011d0b Mon Sep 17 00:00:00 2001 From: "edu.corral" Date: Thu, 9 Jun 2022 17:22:00 +0200 Subject: [PATCH] 8856 meta api functions --- pandora_console/include/functions_api.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index a265c10c84..d2c4f11823 100644 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -5116,7 +5116,7 @@ function api_set_update_snmp_module($id_module, $thrash1, $other, $thrash3) function api_set_new_network_component($id, $thrash1, $other, $thrash2) { global $config; - if (is_metaconsole() === true) { + if (defined('METACONSOLE')) { return; } @@ -5218,7 +5218,7 @@ function api_set_new_plugin_component($id, $thrash1, $other, $thrash2) { global $config; - if (is_metaconsole() === true) { + if (defined('METACONSOLE')) { return; } @@ -5498,7 +5498,7 @@ function api_set_new_local_component($id, $thrash1, $other, $thrash2) { global $config; - if (is_metaconsole() === true) { + if (defined('METACONSOLE')) { return; }