Skip to content

Commit a64af83

Browse files
committed
Fix: Trying to access array offset on value of type null
1 parent a3e1abf commit a64af83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

laravel/app/Http/Repository/ExcelRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public function saveExcel($param, $result, $file = '')
202202
$val = $array['result'][$item] ?? '';
203203
if (strpos($item, '.') !== false) {
204204
$kems = explode('.', $item);
205-
$val = $array['result'];
205+
$val = $array['result'] ?? '';
206206
foreach ($kems as $kem) {
207207
$val = $val[$kem] ?? '';
208208
}

0 commit comments

Comments
 (0)