Minor fixes

This commit is contained in:
David Bomba
2026-01-14 16:58:02 +11:00
parent ba3d19246b
commit 33d300f4e6

View File

@@ -456,7 +456,7 @@ class ImportController extends Controller
$headers = $data[0];
// Remove Invoice Ninja headers
if (count($headers) && count($data) > 4) {
if (is_array($headers) && count($headers) > 0 && count($data) > 4) {
$firstCell = $headers[0];
if (strstr($firstCell, (string) config('ninja.app_name'))) {