Fix: var init at wrong place
This commit is contained in:
parent
7149fd76c7
commit
f50ad96beb
@ -122,12 +122,12 @@ class box_graph_product_distribution extends ModeleBoxes
|
|||||||
$socid=empty($user->societe_id)?0:$user->societe_id;
|
$socid=empty($user->societe_id)?0:$user->societe_id;
|
||||||
$userid=0; // No filter on user creation
|
$userid=0; // No filter on user creation
|
||||||
|
|
||||||
if (! empty($conf->facture->enabled) && ! empty($user->rights->facture->lire))
|
|
||||||
{
|
|
||||||
|
|
||||||
$WIDTH=($nbofgraph >= 2 || ! empty($conf->dol_optimize_smallscreen))?'160':'320';
|
$WIDTH=($nbofgraph >= 2 || ! empty($conf->dol_optimize_smallscreen))?'160':'320';
|
||||||
$HEIGHT='192';
|
$HEIGHT='192';
|
||||||
|
|
||||||
|
if (! empty($conf->facture->enabled) && ! empty($user->rights->facture->lire))
|
||||||
|
{
|
||||||
|
|
||||||
// Build graphic number of object. $data = array(array('Lib',val1,val2,val3),...)
|
// Build graphic number of object. $data = array(array('Lib',val1,val2,val3),...)
|
||||||
if ($showinvoicenb)
|
if ($showinvoicenb)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user