diff --git a/src/Controller/Admin/CustomerController.php b/src/Controller/Admin/CustomerController.php index 6336b66d..552b4d9c 100644 --- a/src/Controller/Admin/CustomerController.php +++ b/src/Controller/Admin/CustomerController.php @@ -78,7 +78,7 @@ public function searchCustomers(Request $request): Response $requestBodyContent = json_decode($request->getContent(), true); $phrase = $requestBodyContent['phrase']; - if (!isset($phrase) && empty($phrase)) { + if (empty($phrase)) { return $this->json(['message' => 'Property phrase is missing or empty.'], Response::HTTP_BAD_REQUEST); }