diff options
author | Stefan Giehl <stefan@matomo.org> | 2019-10-13 22:37:40 +0300 |
---|---|---|
committer | Thomas Steur <tsteur@users.noreply.github.com> | 2019-10-13 22:37:39 +0300 |
commit | ddcf02cd07088a03ef5459f7daff4f7f1f971d1c (patch) | |
tree | bf0e8fad5cc18e4ba0ff93a740239698f124d946 /plugins/CoreVisualizations/Visualizations | |
parent | 1091c618a19c47b53496a9caf0268ec22c9635fe (diff) |
Fix pass by reference error when generating comparison sparklines (#14997)
Diffstat (limited to 'plugins/CoreVisualizations/Visualizations')
-rw-r--r-- | plugins/CoreVisualizations/Visualizations/Sparkline.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/CoreVisualizations/Visualizations/Sparkline.php b/plugins/CoreVisualizations/Visualizations/Sparkline.php index b59a89ba5d..46b333fada 100644 --- a/plugins/CoreVisualizations/Visualizations/Sparkline.php +++ b/plugins/CoreVisualizations/Visualizations/Sparkline.php @@ -188,7 +188,8 @@ class Sparkline extends ViewDataTable private function getComparisonSeries(DataTable\DataTableInterface $dataTable) { if ($dataTable instanceof DataTable\Map) { - return reset($dataTable->getDataTables())->getMetadata('comparisonSeries') ?: []; + $tables = $dataTable->getDataTables(); + return reset($tables)->getMetadata('comparisonSeries') ?: []; } else { return $dataTable->getMetadata('comparisonSeries') ?: []; } |