2
0
forked from Wavyzz/dolibarr

Code comment

This commit is contained in:
Laurent Destailleur
2017-08-27 19:40:43 +02:00
parent f33289ed6a
commit 1b1ce4fdf5
2 changed files with 9 additions and 4 deletions

View File

@@ -1489,10 +1489,14 @@ class DolibarrModules // Can not be abstract, because we need to insta
$resql = $this->db->query($sql);
if (! $resql)
{
$err++;
$this->error = $this->db->lasterror();
$this->errors[] = $this->db->lasterror();
break;
dol_syslog($this->db->lasterror(), LOG_ERR);
if ($this->db->lasterrno() != 'DB_ERROR_RECORD_ALREADY_EXISTS')
{
$this->error = $this->db->lasterror();
$this->errors[] = $this->db->lasterror();
$err++;
break;
}
}
}
$i++;