Merge pull request #5765 from hregis/3.9_bug

Fix: Using $this when not in object context
This commit is contained in:
Laurent Destailleur 2016-09-22 09:10:56 +02:00 committed by GitHub
commit f9f95dec42

View File

@ -313,7 +313,7 @@ if (($action == 'send' || $action == 'relance') && ! $_POST['addfile'] && ! $_PO
$interface=new Interfaces($db); $interface=new Interfaces($db);
$result=$interface->run_triggers($trigger_name,$object,$user,$langs,$conf); $result=$interface->run_triggers($trigger_name,$object,$user,$langs,$conf);
if ($result < 0) { if ($result < 0) {
$error++; $this->errors=$interface->errors; $error++; $errors=$interface->errors;
} }
// End call of triggers // End call of triggers