From ba58578d602796643c7612c34d3c38a6992f57fb Mon Sep 17 00:00:00 2001 From: kadogo Date: Sat, 27 Jan 2018 19:31:48 +0100 Subject: [PATCH] FIX: Global on $user parameter reset the variable When we use the fichinter API with global, the $user object is reset If global is not applied on $user we can retrieve the informations from it --- htdocs/fichinter/class/fichinter.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/fichinter/class/fichinter.class.php b/htdocs/fichinter/class/fichinter.class.php index 70192c460d2..fb2359092a0 100644 --- a/htdocs/fichinter/class/fichinter.class.php +++ b/htdocs/fichinter/class/fichinter.class.php @@ -140,7 +140,7 @@ class Fichinter extends CommonObject */ function create($user, $notrigger=0) { - global $conf, $user, $langs; + global $conf, $langs; dol_syslog(get_class($this)."::create ref=".$this->ref);