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.

This commit is contained in:
johnnyq 2023-01-31 17:18:18 -05:00
parent d1172e512b
commit ca290120df
2 changed files with 3 additions and 1 deletions

View File

@ -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
)
);

View File

@ -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
)
);