From 0e088579c595e2992b58ce85877969773a031373 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=EF=BF=BD=EF=BF=BDois=20Serman?= Date: Thu, 26 Jun 2014 10:29:45 +0000 Subject: [PATCH] no $err->log but $this->halt --- bureau/class/db_mysql.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bureau/class/db_mysql.php b/bureau/class/db_mysql.php index 6d86923e..7bf09c8e 100644 --- a/bureau/class/db_mysql.php +++ b/bureau/class/db_mysql.php @@ -69,7 +69,7 @@ class DB_Sql { */ function connect($Database = "", $Host = "", $User = "", $Password = "") { global $err; - $err->log('Mysql', 'Legacy', 'This function should no longer be used'); + $this->halt('Mysql::connect() : This function should no longer be used'); /* Handle defaults */ if ("" == $Database) $Database = $this->Database; @@ -86,7 +86,7 @@ class DB_Sql { try { $this->pdo_instance = new PDO($dsn, $User, $Password); } catch (PDOException $e) { - $err->log("Mysql", "PDO instance", $e->getMessage()); + $this->halt("Mysql::PDO_instance" . $e->getMessage()); return FALSE; } }