1
0
Fork 0
mirror of https://github.com/ThomasGsp/HyperProxmox.git synced 2025-02-13 11:42:13 +00:00

Clean code

This commit is contained in:
Tlams 2018-02-23 13:47:08 +00:00
parent 672ca5b06b
commit 34919ab66e

View file

@ -523,7 +523,7 @@ class DbConn
$this->conn = new PDO('mysql:host=' . $host . ';dbname=' . $db_name . ';charset=utf8', $username, $password); $this->conn = new PDO('mysql:host=' . $host . ';dbname=' . $db_name . ';charset=utf8', $username, $password);
$this->conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $this->conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch (\Exception $e) { } catch (Exception $e) {
error_log("Database connection error:".$e); error_log("Database connection error:".$e);
die('Database connection error'); die('Database connection error');
} }