From 34919ab66ec00624b95e9bd52903fbcd24f737b4 Mon Sep 17 00:00:00 2001 From: Tlams Date: Fri, 23 Feb 2018 13:47:08 +0000 Subject: [PATCH] Clean code --- code/web/www/pages/requires/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/web/www/pages/requires/functions.php b/code/web/www/pages/requires/functions.php index bb1f4f9..efe431d 100755 --- a/code/web/www/pages/requires/functions.php +++ b/code/web/www/pages/requires/functions.php @@ -523,7 +523,7 @@ class DbConn $this->conn = new PDO('mysql:host=' . $host . ';dbname=' . $db_name . ';charset=utf8', $username, $password); $this->conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); - } catch (\Exception $e) { + } catch (Exception $e) { error_log("Database connection error:".$e); die('Database connection error'); }