From 97b1bf0ea131b54b3f8a607247ac73e03c4ff377 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Sun, 1 Dec 2019 20:05:48 +0100 Subject: [PATCH] The variable $error seems to be never defined --- htdocs/ticket/class/ticket.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htdocs/ticket/class/ticket.class.php b/htdocs/ticket/class/ticket.class.php index c1acd22f3e0..cf1e2502676 100644 --- a/htdocs/ticket/class/ticket.class.php +++ b/htdocs/ticket/class/ticket.class.php @@ -1368,6 +1368,8 @@ class Ticket extends CommonObject { global $conf, $langs; + $error = 0; + if ($this->statut != self::STATUS_CANCELED) { // no closed $this->db->begin(); @@ -1420,6 +1422,7 @@ class Ticket extends CommonObject { global $conf, $langs; + $error = 0; $this->db->begin(); $this->oldcopy = dol_clone($this);