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;