mirror of https://github.com/itflow-org/itflow
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:
parent
d1172e512b
commit
ca290120df
1
cron.php
1
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
|
||||
)
|
||||
);
|
||||
|
|
|
|||
3
post.php
3
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
|
||||
)
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue