diff --git a/htdocs/facture.class.php b/htdocs/facture.class.php index 6e1a58dafe9..c720c92545f 100644 --- a/htdocs/facture.class.php +++ b/htdocs/facture.class.php @@ -3043,7 +3043,7 @@ class FactureLigne */ function update() { - global $conf; + global $user,$langs,$conf; // Clean parameters $this->desc=trim($this->desc); diff --git a/htdocs/interfaces.class.php b/htdocs/interfaces.class.php index 4d54b46563a..6e6a1378b2d 100644 --- a/htdocs/interfaces.class.php +++ b/htdocs/interfaces.class.php @@ -57,6 +57,12 @@ class Interfaces */ function run_triggers($action,$object,$user,$langs,$conf) { + // Check parameters + if (! is_object($object) || ! is_object($user) || ! is_object($langs) || ! is_object($conf)) + { + dol_syslog('interface::run_triggers was called with wrong parameters object='.is_object($object).' user='.is_object($user).' langs='.is_object($langs).' conf='.is_object($conf), LOG_WARNING); + } + $handle=opendir($this->dir); $modules = array(); $nbfile = $nbtotal = $nbok = $nbko = 0;