From 1b0a6252f1aa45466386849a13439636bea4935d Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Tue, 22 Sep 2020 19:58:30 -0700 Subject: [PATCH] Fix undefined index error; closes #2378; closes #2391 --- app/Exceptions/Handler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index f63e5a37f..f84c7077b 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -190,7 +190,7 @@ class Handler extends ExceptionHandler $converted = self::convertToArray($exception)['errors'][0]; $converted['detail'] = $error; - $converted['meta'] = is_array($converted['meta']) ? array_merge($converted['meta'], $meta) : $meta; + $converted['meta'] = is_array($converted['meta'] ?? null) ? array_merge($converted['meta'], $meta) : $meta; $response[] = $converted; }