The variable $error seems to be never defined

This commit is contained in:
Frédéric FRANCE 2019-12-01 20:05:48 +01:00 committed by GitHub
parent 5cb014435b
commit 97b1bf0ea1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1368,6 +1368,8 @@ class Ticket extends CommonObject
{ {
global $conf, $langs; global $conf, $langs;
$error = 0;
if ($this->statut != self::STATUS_CANCELED) { // no closed if ($this->statut != self::STATUS_CANCELED) { // no closed
$this->db->begin(); $this->db->begin();
@ -1420,6 +1422,7 @@ class Ticket extends CommonObject
{ {
global $conf, $langs; global $conf, $langs;
$error = 0;
$this->db->begin(); $this->db->begin();
$this->oldcopy = dol_clone($this); $this->oldcopy = dol_clone($this);