(Bar/Line)Graph: Fix `Variable '$ts' is probably undefined`

This commit is contained in:
Sukhwinder Dhillon 2023-08-15 16:41:52 +02:00 committed by raviks789
parent e3b89184ae
commit b68eb40103
2 changed files with 2 additions and 0 deletions

View File

@ -67,6 +67,7 @@ class BarGraph extends Styleable implements Drawable
$this->dataSet = $dataSet;
$this->tooltips = $tooltips;
$ts = [];
foreach ($this->tooltips as $value) {
$ts[] = $value;
}

View File

@ -74,6 +74,7 @@ class LineGraph extends Styleable implements Drawable
$this->graphs = $graphs;
$this->tooltips = $tooltips;
$ts = [];
foreach ($this->tooltips as $value) {
$ts[] = $value;
}