From 3b5cb8e9dd794a6b5123835dab4611daf8a15465 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Sun, 1 Sep 2019 00:23:06 +0200 Subject: [PATCH] Data_SQL Add database indication --- include/lib/data_sql.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/lib/data_sql.class.php b/include/lib/data_sql.class.php index 5b45aa482..57827c0ca 100644 --- a/include/lib/data_sql.class.php +++ b/include/lib/data_sql.class.php @@ -46,8 +46,9 @@ */ abstract class Data_SQL { - - function __construct($p_cn, $p_id=-1) + private $cn; //! Database connection + + function __construct(DatabaseCore $p_cn, $p_id=-1) { $this->cn=$p_cn; $pk=$this->primary_key;