From c4c7d916e76bbc1f8f9c72a8aaba6843dc0579d6 Mon Sep 17 00:00:00 2001 From: Jose Gonzalez Date: Thu, 24 Oct 2019 17:21:21 +0200 Subject: [PATCH] Applying of better way for save config --- pandora_console/extensions/sample_agent.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pandora_console/extensions/sample_agent.php b/pandora_console/extensions/sample_agent.php index 6419980ba6..ba92debae9 100644 --- a/pandora_console/extensions/sample_agent.php +++ b/pandora_console/extensions/sample_agent.php @@ -60,11 +60,7 @@ if ($config['sample_agent'] == 1 && !isset($config['sample_agent_deployed'])) { db_process_sql($query); // This setting will avoid regenerate all the times the visual consoles. - $values = [ - 'token' => 'sample_agent_deployed', - 'value' => '1', - ]; - db_process_sql_insert('tconfig', $values); + config_update_value('sample_agent_deployed', 1); } extensions_add_main_function('sample_agent_deployment');