mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-04 08:02:22 +01:00
Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 21.0
This commit is contained in:
@@ -732,7 +732,9 @@ class DolGraph
|
||||
foreach ($this->data as $x) { // Loop on each x
|
||||
for ($i = 0; $i < $nbseries; $i++) { // Loop on each series
|
||||
if (is_null($max)) {
|
||||
$max = $x[$i + 1]; // $i+1 because the index 0 is the legend
|
||||
if (isset($x[$i + 1])) {
|
||||
$max = $x[$i + 1]; // $i+1 because the index 0 is the legend
|
||||
}
|
||||
} elseif ($max < $x[$i + 1]) {
|
||||
$max = $x[$i + 1];
|
||||
}
|
||||
@@ -762,7 +764,9 @@ class DolGraph
|
||||
foreach ($this->data as $x) { // Loop on each x
|
||||
for ($i = 0; $i < $nbseries; $i++) { // Loop on each series
|
||||
if (is_null($min)) {
|
||||
$min = $x[$i + 1]; // $i+1 because the index 0 is the legend
|
||||
if (isset($x[$i + 1])) {
|
||||
$min = $x[$i + 1]; // $i+1 because the index 0 is the legend
|
||||
}
|
||||
} elseif ($min > $x[$i + 1]) {
|
||||
$min = $x[$i + 1];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user