FIX #4633
This commit is contained in:
parent
7def330f54
commit
c1d7f5a7ed
@ -193,14 +193,17 @@ if (! empty($id) || ! empty($ref) || GETPOST('id') == 'all')
|
|||||||
//print '<table width="100%">';
|
//print '<table width="100%">';
|
||||||
|
|
||||||
// Generation des graphs
|
// Generation des graphs
|
||||||
$dir = (! empty($conf->product->multidir_temp[$object->entity])?$conf->product->multidir_temp[$object->entity]:$conf->service->multidir_temp[$object->entity]);
|
if ($object->id > 0) // We are on statistics for a dedicated product
|
||||||
if (! file_exists($dir.'/'.$object->id))
|
|
||||||
{
|
{
|
||||||
if (dol_mkdir($dir.'/'.$object->id) < 0)
|
$dir = (! empty($conf->product->multidir_temp[$object->entity])?$conf->product->multidir_temp[$object->entity]:$conf->service->multidir_temp[$object->entity]);
|
||||||
{
|
if (! file_exists($dir.'/'.$object->id))
|
||||||
$mesg = $langs->trans("ErrorCanNotCreateDir",$dir);
|
{
|
||||||
$error++;
|
if (dol_mkdir($dir.'/'.$object->id) < 0)
|
||||||
}
|
{
|
||||||
|
$mesg = $langs->trans("ErrorCanNotCreateDir",$dir);
|
||||||
|
$error++;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$graphfiles=array(
|
$graphfiles=array(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user