2
0
forked from Wavyzz/dolibarr

Fix: Corrige probleme sur fonction last_insert_id

This commit is contained in:
Laurent Destailleur
2004-10-30 01:35:32 +00:00
parent 7e1567d99b
commit 48bf4ea8ff

View File

@@ -103,7 +103,6 @@ class DoliDb {
if ($this->connected && $name)
{
if ($this->select_db($name) == 1)
{
$this->database_selected = 1;
@@ -114,14 +113,11 @@ class DoliDb {
$this->database_selected = 0;
$this->ok = 0;
}
}
else
{
// Pas de selection de base demand<6E>e, mais tout est ok
// Pas de selection de base demand<6E>e, ok ou ko
$this->database_selected = 0;
$this->ok = 1;
}
return $this->ok;
@@ -458,7 +454,7 @@ class DoliDb {
function last_insert_id()
{
return mysql_insert_id();
return mysql_insert_id($this->db);
}
/*!
@@ -468,7 +464,7 @@ class DoliDb {
function affected_rows()
{
return mysql_affected_rows();
return mysql_affected_rows($this->db);
}