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
This commit is contained in:
kadogo 2018-01-27 19:31:48 +01:00
parent 1834be79a0
commit ba58578d60

View File

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