From 495f5de6ac7fbe2dae693c3c8ba205773d38cf6c Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 8 Jan 2008 12:04:28 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20manquait=20cr=E9ation=20instance=20de=20?= =?UTF-8?q?classe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/comm/fiche.php | 1 - htdocs/lib/company.lib.php | 11 +++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php index 564a0f4debd..33ec53fe629 100644 --- a/htdocs/comm/fiche.php +++ b/htdocs/comm/fiche.php @@ -128,7 +128,6 @@ if ($mode == 'search') { llxHeader('',$langs->trans('CustomerCard')); -$facturestatic=new Facture($db); $contactstatic = new Contact($db); $userstatic=new User($db); diff --git a/htdocs/lib/company.lib.php b/htdocs/lib/company.lib.php index 5fc1d886274..8da29f782ff 100644 --- a/htdocs/lib/company.lib.php +++ b/htdocs/lib/company.lib.php @@ -136,7 +136,8 @@ function show_actions_todo($conf,$langs,$db,$objsoc) { require_once(DOL_DOCUMENT_ROOT."/actioncomm.class.php"); $actionstatic=new ActionComm($db); - $userstatic=new User($db); + $userstatic=new User($db); + $contactstatic = new Contact($db); print_titre($langs->trans("ActionsOnCompany")); @@ -259,10 +260,12 @@ function show_actions_done($conf,$langs,$db,$objsoc) global $bc; if ($conf->agenda->enabled) - { - require_once(DOL_DOCUMENT_ROOT."/actioncomm.class.php"); + { + require_once(DOL_DOCUMENT_ROOT."/actioncomm.class.php"); $actionstatic=new ActionComm($db); - $userstatic=new User($db); + $userstatic=new User($db); + $contactstatic = new Contact($db); + $facturestatic=new Facture($db); print ''; print '';