Skip to content

Commit dfa50b6

Browse files
author
Jose Rodriguez
committed
fixes Undefined array key "filters" error
1 parent aa0e4dc commit dfa50b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Drivers/Standard/ParamsValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function validateScopes(Request $request): void
4747

4848
public function validateFilters(Request $request): void
4949
{
50-
$maxDepth = floor($this->getArrayDepth($request->all()['filters']) / 2);
50+
$maxDepth = floor($this->getArrayDepth($request->input('filters', [])) / 2);
5151
$configMaxNestedDepth = config('orion.search.max_nested_depth', 1);
5252

5353
abort_if(

0 commit comments

Comments
 (0)