diff --git a/htdocs/core/class/cproductnature.class.php b/htdocs/core/class/cproductnature.class.php index 183495d4ba3..9e79093b12b 100644 --- a/htdocs/core/class/cproductnature.class.php +++ b/htdocs/core/class/cproductnature.class.php @@ -279,7 +279,7 @@ class CProductNature // extends CommonObject // Commit or rollback if (!$resql) { dol_syslog(get_class($this)."::update Error ".$this->db->lasterror(), LOG_ERR); - $this->error = "Error ".$this->db->lasterror(); + $this->error = "Error ".$this->db->lasterror(); $this->db->rollback(); return -1; } else {