Check that contacts are an array
This commit is contained in:
parent
01852f9436
commit
f7727da192
1 changed files with 1 additions and 1 deletions
|
|
@ -134,7 +134,7 @@ class Request extends FormRequest
|
|||
}
|
||||
}
|
||||
|
||||
if (isset($input['contacts'])) {
|
||||
if (isset($input['contacts']) && is_array($input['contacts'])) {
|
||||
foreach ($input['contacts'] as $key => $contact) {
|
||||
if (array_key_exists('id', $contact) && is_numeric($contact['id'])) {
|
||||
unset($input['contacts'][$key]['id']);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue