From 2c765734718e37f7ef4648ae501ee604377c2325 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Sat, 1 Jan 2022 18:30:06 -0500 Subject: [PATCH] Fixed Syntax error under setup --- setup.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.php b/setup.php index a0de2f02..608b80ed 100644 --- a/setup.php +++ b/setup.php @@ -386,7 +386,7 @@ if(isset($_POST['add_database'])){ } if(isset($_POST['add_user'])){ - $user_count = mysqli_num_rows(mysqli_query($mysqli,"SELECT COUNT(*) FROM users;")); + $user_count = mysqli_num_rows(mysqli_query($mysqli,"SELECT COUNT(*) FROM users")); if($user_count !== 0) { $_SESSION['alert_message'] = "Users already exist in the database. Clear them to reconfigure here."; header("Location: setup.php?company"); @@ -804,7 +804,7 @@ if(isset($_POST['add_company_settings'])){

Company Details

- + Database config invalid, or users already exist in the database.