Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 21.0

This commit is contained in:
Laurent Destailleur
2025-11-25 20:57:32 +01:00
2 changed files with 30 additions and 24 deletions

View File

@@ -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];
}