Skip to content

Commit f9f79a8

Browse files
export not working #104
1 parent 312bd43 commit f9f79a8

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

classes/Visualizer/Module/Chart.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,18 @@ public function exportData() {
590590

591591
if (!empty($data)) {
592592
foreach ($data as $array) {
593-
$rows[] = $array;
593+
// 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+
}
594605
}
595606
}
596607

0 commit comments

Comments
 (0)