From 12b1f5b23b4b712f851ad6b90d32e382a27744b4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 8 Jul 2021 21:05:56 +0200 Subject: [PATCH] Fix sql --- htdocs/core/class/dolgraph.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/dolgraph.class.php b/htdocs/core/class/dolgraph.class.php index 17dcdd557a4..a1725526898 100644 --- a/htdocs/core/class/dolgraph.class.php +++ b/htdocs/core/class/dolgraph.class.php @@ -611,7 +611,7 @@ class DolGraph $nbseries = (empty($this->data[0]) ? 0 : count($this->data[0]) - 1); - foreach($this->data as $x) { // Loop on each x + foreach ($this->data as $x) { // Loop on each x for ($i = 0; $i < $nbseries; $i++) { // Loop on each serie if (is_null($max)) { $max = $x[$i + 1]; // $i+1 because the index 0 is the legend @@ -641,7 +641,7 @@ class DolGraph $nbseries = (empty($this->data[0]) ? 0 : count($this->data[0]) - 1); - foreach($this->data as $x) { // Loop on each x + foreach ($this->data as $x) { // Loop on each x for ($i = 0; $i < $nbseries; $i++) { // Loop on each serie if (is_null($min)) { $min = $x[$i + 1]; // $i+1 because the index 0 is the legend