diff --git a/app/Http/Controllers/V1/Client/ClientController.php b/app/Http/Controllers/V1/Client/ClientController.php index 28649d5..ff9a9f0 100644 --- a/app/Http/Controllers/V1/Client/ClientController.php +++ b/app/Http/Controllers/V1/Client/ClientController.php @@ -166,7 +166,10 @@ class ClientController extends Controller private function getFilterArray(?string $filter): ?array { - return mb_strlen((string) $filter) > 20 ? null : + if ($filter === null) { + return null; + } + return mb_strlen($filter) > 20 ? null : explode('|', str_replace(['|', '|', ','], '|', $filter)); }