diff --git a/htdocs/core/boxes/box_graph_product_distribution.php b/htdocs/core/boxes/box_graph_product_distribution.php
index 2c63690e547..0cff88d41b4 100644
--- a/htdocs/core/boxes/box_graph_product_distribution.php
+++ b/htdocs/core/boxes/box_graph_product_distribution.php
@@ -95,10 +95,10 @@ class box_graph_product_distribution extends ModeleBoxes
$nowarray=dol_getdate(dol_now(),true);
$year=(GETPOST($param_year,'',4)?GETPOST($param_year,'int',4):$nowarray['year']);
- $nbofgraph=0;
- if ($showinvoicenb) $nbofgraph++;
- if ($showpropalnb) $nbofgraph++;
- if ($showordernb) $nbofgraph++;
+ $nbofgraph=0;
+ if ($showinvoicenb) $nbofgraph++;
+ if ($showpropalnb) $nbofgraph++;
+ if ($showordernb) $nbofgraph++;
$paramtitle=$langs->trans("Products").'/'.$langs->trans("Services");
if (empty($conf->produit->enabled)) $paramtitle=$langs->trans("Services");
@@ -322,18 +322,18 @@ class box_graph_product_distribution extends ModeleBoxes
$stringtoshow.='
';
if ($showinvoicenb) $stringtoshow.=$px1->show();
else if ($showpropalnb) $stringtoshow.=$px2->show();
- $stringtoshow.='
';
+ $stringtoshow.='
';
if ($showordernb) $stringtoshow.=$px3->show();
else if ($showpropalnb) $stringtoshow.=$px2->show();
- $stringtoshow.='
';
+ $stringtoshow.='';
}
- if ($nbofgraph == 3)
+ if ($nbofgraph == 3)
{
- $stringtoshow.='';
- $stringtoshow.=$px1->show();
- $stringtoshow.='
';
- $stringtoshow.=$px2->show();
- $stringtoshow.='
';
+ $stringtoshow.='';
+ $stringtoshow.=$px1->show();
+ $stringtoshow.='
';
+ $stringtoshow.=$px2->show();
+ $stringtoshow.='
';
$stringtoshow.='';
$stringtoshow.=$px3->show();
$stringtoshow.='
';
diff --git a/htdocs/core/class/dolgraph.class.php b/htdocs/core/class/dolgraph.class.php
index ac603837240..612c73a01bb 100644
--- a/htdocs/core/class/dolgraph.class.php
+++ b/htdocs/core/class/dolgraph.class.php
@@ -244,15 +244,15 @@ class DolGraph
$this->data = $data;
}
- /**
- * Set data
- *
- * @param array $datacolor Data color array(array(R,G,B),array(R,G,B)...)
- * @return void
- */
- function SetDataColor($datacolor)
- {
- $this->datacolor = $datacolor;
+ /**
+ * Set data
+ *
+ * @param array $datacolor Data color array(array(R,G,B),array(R,G,B)...)
+ * @return void
+ */
+ function SetDataColor($datacolor)
+ {
+ $this->datacolor = $datacolor;
}
/**