mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-12 20:41:26 +01:00
Le code erreur errno du gestionnaire de base renvoi 0 plutot que DB_ERROR_0 si pas d'erreur
This commit is contained in:
@@ -507,7 +507,8 @@ class DoliDb
|
||||
if (isset($this->errorcode_map[mysql_errno($this->db)])) {
|
||||
return $this->errorcode_map[mysql_errno($this->db)];
|
||||
}
|
||||
return 'DB_ERROR_'.mysql_errno($this->db);
|
||||
$errno=mysql_errno($this->db);
|
||||
return ($errno?'DB_ERROR_'.$errno:'0');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user