From e4a7ae2ea0e3e447f5d810f885a64d093b360e6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Thu, 12 Dec 2019 20:25:36 +0100 Subject: [PATCH] The variable xxx seems to be never defined --- htdocs/fichinter/class/fichinter.class.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/htdocs/fichinter/class/fichinter.class.php b/htdocs/fichinter/class/fichinter.class.php index 380204c2b0d..9ca729aedfc 100644 --- a/htdocs/fichinter/class/fichinter.class.php +++ b/htdocs/fichinter/class/fichinter.class.php @@ -6,7 +6,7 @@ * Copyright (C) 2015 Marcos García * Copyright (C) 2015 Charlie Benke * Copyright (C) 2018 Nicolas ZABOURI - * Copyright (C) 2018 Frédéric France + * Copyright (C) 2018-2019 Frédéric France * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -197,6 +197,8 @@ class Fichinter extends CommonObject { global $conf, $langs; + $error = 0; + dol_syslog(get_class($this)."::create ref=".$this->ref); // Check parameters @@ -329,6 +331,8 @@ class Fichinter extends CommonObject */ public function update($user, $notrigger = 0) { + global $conf; + if (! is_numeric($this->duration)) { $this->duration = 0; } @@ -1474,6 +1478,8 @@ class FichinterLigne extends CommonObjectLine { global $langs,$conf; + $error = 0; + dol_syslog("FichinterLigne::insert rang=".$this->rang); $this->db->begin(); @@ -1570,7 +1576,9 @@ class FichinterLigne extends CommonObjectLine { global $langs,$conf; - $this->db->begin(); + $error = 0; + + $this->db->begin(); // Mise a jour ligne en base $sql = "UPDATE ".MAIN_DB_PREFIX."fichinterdet SET";