From d712153b782e19311e5fe5098d7937fa9f28850d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 12 Aug 2004 21:47:43 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Probl=E8me=20sur=20g=E9n=E9ration=20des?= =?UTF-8?q?=20graphiques=20si=20le=20rep=20document=20n'existait=20pas.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/product/stats/fiche.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/htdocs/product/stats/fiche.php b/htdocs/product/stats/fiche.php index d81413b055f..35ad1719a82 100644 --- a/htdocs/product/stats/fiche.php +++ b/htdocs/product/stats/fiche.php @@ -38,6 +38,7 @@ llxHeader(); $mesg = ''; + /* * * @@ -54,6 +55,8 @@ if ($_GET["id"]) if (! file_exists($dir)) { umask(0); + mkdir(DOL_DOCUMENT_ROOT."/document"); + mkdir(DOL_DOCUMENT_ROOT."/document/produit"); if (! mkdir($dir, 0755)) { $mesg = "Impossible de créer $dir !"; @@ -107,7 +110,7 @@ if ($_GET["id"]) print ''; print ''; print ''; - print ""; + print ""; print '
'.$langs->trans("Ref").''.$product->ref.''.$langs->trans("Statistics").'
Libellé$product->libelle
".$langs->trans("Label")."$product->libelle'; print 'Propositions commerciales : '.$product->count_propale($socid); print "
Proposé à ".$product->count_propale_client($socid)." clients"; @@ -189,7 +192,7 @@ if ($_GET["id"]) } else { - print "Error"; + dolibarr_print_error(); } $db->close();