From 62768459561b6051e3db5c4c40e62b358057471e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Wed, 13 Feb 2019 23:48:44 +0100 Subject: [PATCH] Update mod_expensereport_sand.php --- .../core/modules/expensereport/mod_expensereport_sand.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/core/modules/expensereport/mod_expensereport_sand.php b/htdocs/core/modules/expensereport/mod_expensereport_sand.php index 38b2dd0c2b6..e9c5eb06dd5 100644 --- a/htdocs/core/modules/expensereport/mod_expensereport_sand.php +++ b/htdocs/core/modules/expensereport/mod_expensereport_sand.php @@ -61,11 +61,11 @@ class mod_expensereport_sand extends ModeleNumRefExpenseReport */ function info() { - global $conf, $langs; + global $db, $conf, $langs; $langs->load("bills"); - $form = new Form($this->db); + $form = new Form($db); $texte = $langs->trans('GenericNumRefModelDesc')."
\n"; $texte.= '
'; @@ -101,9 +101,9 @@ class mod_expensereport_sand extends ModeleNumRefExpenseReport */ function getExample() { - global $conf,$langs,$user; + global $db, $conf,$langs,$user; - $exp=new ExpenseReport($this->db); + $exp=new ExpenseReport($db); $exp->initAsSpecimen(); $exp->fk_user_author = $user->id;