diff --git a/setup.php b/setup.php index a9fbc2e5..b7d2cb78 100644 --- a/setup.php +++ b/setup.php @@ -329,6 +329,7 @@ $currencies_array = array( if(isset($_POST['add_database'])){ + // Check if database has been setup already. If it has, direct user to edit directly instead. if(file_exists('config.php')){ $_SESSION['alert_message'] = "Database already configured. Any further changes should be made by editing the config.php file."; header("Location: setup.php?user"); @@ -951,6 +952,16 @@ if(isset($_POST['add_company_settings'])){