Skip to content

Commit 69785c9

Browse files
committed
Avoid error when column is not set
1 parent 46b3916 commit 69785c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controllers/ReportController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ private function getQueryData($slug, $id)
6262
$indexed[$id] = [];
6363
}
6464
if (count($index) > 1) {
65-
$value = $row[$index[0]][$index[1]];
65+
$value = $row[$index[0]][$index[1]] ?? null;
6666
$key = $as ?: $index[1];
6767
} else {
6868
$key = $as ?: $index[0];

0 commit comments

Comments
 (0)