Déclaration de 3 propriétés dans la classe DoliDb qui ne l'était pas.

This commit is contained in:
Laurent Destailleur 2004-02-21 17:17:26 +00:00
parent 4ca979d035
commit 69d5aac34e

View File

@ -23,13 +23,14 @@
*/ */
class DoliDb { class DoliDb {
var $db, $results, $ok; var $db, $results, $ok, $connected, $database_selected;
Function DoliDb($type = 'mysql', $host = '', $user = '', $pass = '', $name = '') Function DoliDb($type = 'mysql', $host = '', $user = '', $pass = '', $name = '')
{ {
// print "Name DB : $host, $user, $pass, $name<br>";
global $conf; global $conf;
// print "Name DB : $host, $user, $pass, $name<br>";
if ($host == '') if ($host == '')
{ {
$host = $conf->db->host; $host = $conf->db->host;
@ -51,7 +52,6 @@ class DoliDb {
} }
$this->db = $this->connect($host, $user, $pass); $this->db = $this->connect($host, $user, $pass);
if ($this->db) if ($this->db)
{ {
$this->connected = 1; $this->connected = 1;
@ -123,8 +123,7 @@ class DoliDb {
Function close() Function close()
{ {
$this->ret = mysql_close($this->db); return mysql_close($this->db);
return $this->ret;
} }
Function begin($do=1) Function begin($do=1)