2
0
forked from Wavyzz/dolibarr

Fix: Status of db hanlder not modified on disconnect

This commit is contained in:
Laurent Destailleur
2011-03-09 15:01:39 +00:00
parent c5c9432b01
commit b6e658aaaa
4 changed files with 59 additions and 38 deletions

View File

@@ -274,16 +274,21 @@ class DoliDb
}
/**
* \brief Fermeture d'une connexion vers une database.
* \return resource
* \seealso connect
*/
function close()
{
dol_syslog("DoliDB::disconnect",LOG_DEBUG);
return ($this->db?mysql_close($this->db):0);
}
/**
* Close database connexion
* @return boolean True if disconnect successfull, false otherwise
* @see connect
*/
function close()
{
if ($this->db)
{
//dol_syslog("DoliDB::disconnect",LOG_DEBUG);
$this->connected=0;
return mysql_close($this->db);
}
return false;
}
/**
@@ -993,7 +998,7 @@ class DoliDb
else
return 1;
}
/**
* \brief Drop a field in table
* \param table Nom de la table