mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Tidy try catch
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user