From ca290120df7ef93e8fc4449e8fc519f2b84849f3 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Tue, 31 Jan 2023 17:18:18 -0500 Subject: [PATCH] Added config_telemetry variable to send telemetry to verify if telemetry is on or off when sent. Fixed sending telemetry on update when off these were due to an = sign when it should have been a double == Checked setup since this is the last place where it sends telemetry and it is correct. --- cron.php | 1 + post.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cron.php b/cron.php index 85029bce..c8195f53 100644 --- a/cron.php +++ b/cron.php @@ -632,6 +632,7 @@ while($row = mysqli_fetch_array($sql_companies)){ 'config_module_enable_itdoc' => $config_module_enable_itdoc, 'config_module_enable_ticketing' => $config_module_enable_ticketing, 'config_module_enable_accounting' => $config_module_enable_accounting, + 'config_telemetry' => $config_telemetry, 'collection_method' => 3 ) ); diff --git a/post.php b/post.php index 37837f7c..d7c283a6 100644 --- a/post.php +++ b/post.php @@ -1556,7 +1556,7 @@ if(isset($_GET['update'])){ // Send Telemetry if enabled during update - if($config_telemetry = 1){ + if($config_telemetry == 1){ $sql = mysqli_query($mysqli,"SELECT * FROM companies LIMIT 1"); $row = mysqli_fetch_array($sql); @@ -1784,6 +1784,7 @@ if(isset($_GET['update'])){ 'config_module_enable_itdoc' => $config_module_enable_itdoc, 'config_module_enable_ticketing' => $config_module_enable_ticketing, 'config_module_enable_accounting' => $config_module_enable_accounting, + 'config_telemetry' => $config_telemetry, 'collection_method' => 4 ) );