2
0
forked from Wavyzz/dolibarr

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

View File

@@ -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);