Tidy try catch

This commit is contained in:
Marcus Hill 2022-12-24 18:35:44 +00:00
parent 063085528c
commit 7a76033e55
1 changed files with 1 additions and 2 deletions

View File

@ -785,8 +785,7 @@ if(isset($_POST['add_database'])){
// Test database connection before writing it to config.php
try {
mysqli_connect($host, $username, $password, $database);
}
catch (Exception $e) {
} catch (Exception $e) {
exit("<b>Database connection failed - please check and try again</b> <br> <br> $e");
}