We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 312bd43 commit f9f79a8Copy full SHA for f9f79a8
classes/Visualizer/Module/Chart.php
@@ -590,7 +590,18 @@ public function exportData() {
590
591
if (!empty($data)) {
592
foreach ($data as $array) {
593
- $rows[] = $array;
+ // ignore strings
594
+ if (!is_array($array)) continue;
595
+
596
+ // if this is an array of arrays...
597
+ if (is_array($array[0])) {
598
+ foreach ($array as $arr) {
599
+ $rows[] = $arr;
600
+ }
601
+ } else {
602
+ // just an array
603
+ $rows[] = $array;
604
605
}
606
607
0 commit comments