From 709516853a3cd37e364ff136ac36c7c5daf025b3 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Sat, 11 Mar 2023 18:50:18 -0500 Subject: [PATCH] Remove company_id fields in Setup no longer used also rework writing the config file --- setup.php | 51 ++++++++++++++++++++++++--------------------------- 1 file changed, 24 insertions(+), 27 deletions(-) diff --git a/setup.php b/setup.php index 9f6e3b33..347b89cf 100644 --- a/setup.php +++ b/setup.php @@ -791,23 +791,20 @@ if (isset($_POST['add_database'])) { exit("Database connection failed - please check and try again

$e"); } - $new_config = array(); - $new_config[] = "$name created!"; @@ -1010,7 +1007,7 @@ if (isset($_POST['add_telemetry'])) { $comments = sanitizeInput($_POST['comments']); - $sql = mysqli_query($mysqli,"SELECT * FROM companies LIMIT 1"); + $sql = mysqli_query($mysqli,"SELECT * FROM companies WHERE company_id = 1"); $row = mysqli_fetch_array($sql); $company_name = $row['company_name'];