diff options
author | mattab <matthieu.aubry@gmail.com> | 2016-10-31 02:45:08 +0300 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2016-10-31 02:45:08 +0300 |
commit | d2517c03375edcedc9948bf7cbdf64b14502f185 (patch) | |
tree | 5cbb1c3cae152923949d8ed650d55d4179a58f84 /plugins/CoreVisualizations | |
parent | 08a3ec01bec5799a0c55714b01e193135f2b0a88 (diff) |
Trying to fix a notice, refs #10731
Diffstat (limited to 'plugins/CoreVisualizations')
-rw-r--r-- | plugins/CoreVisualizations/Visualizations/Sparklines.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/CoreVisualizations/Visualizations/Sparklines.php b/plugins/CoreVisualizations/Visualizations/Sparklines.php index 82cdf959cc..8ee6f60401 100644 --- a/plugins/CoreVisualizations/Visualizations/Sparklines.php +++ b/plugins/CoreVisualizations/Visualizations/Sparklines.php @@ -59,7 +59,12 @@ class Sparklines extends ViewDataTable $columnsList = array(); if ($this->config->hasSparklineMetrics()) { foreach ($this->config->getSparklineMetrics() as $cols) { - $columnsList = array_merge($cols['columns'], $columnsList); + $columns = $cols['columns']; + if (!is_array($columns)) { + $columns = array($columns); + } + + $columnsList = array_merge($columns, $columnsList); } } |