Fix: On ne libère pas le resultset si il n'existe pas
This commit is contained in:
parent
7c7da20618
commit
d50b6c818d
@ -470,7 +470,6 @@ class DoliDb
|
|||||||
return 'DB_ERROR_FAILED_TO_CONNECT';
|
return 'DB_ERROR_FAILED_TO_CONNECT';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// Si il y a eu echec de connection, $this->db n'est pas valide.
|
|
||||||
if (isset($this->errorcode_map[mysql_errno($this->db)])) {
|
if (isset($this->errorcode_map[mysql_errno($this->db)])) {
|
||||||
return $this->errorcode_map[mysql_errno($this->db)];
|
return $this->errorcode_map[mysql_errno($this->db)];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user